Created
November 7, 2022 03:34
-
-
Save rajivharlalka/28fda216a7b5e61bcc781d6db048078c to your computer and use it in GitHub Desktop.
A list of zsh functions I use for better terminal efficiency.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Run Code -Code runner for C/C++ codes | |
rc() { | |
#!/bin/bash | |
PROG_NAME=$1 | |
g++ -Werror $PROG_NAME | |
if [[ $? == 0 ]]; then | |
./a.out | |
fi | |
} | |
# Make dir and cd into it with 'take' or just 'tk' | |
function take() { | |
mkdir -p $1; cd $1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment