Skip to content

Instantly share code, notes, and snippets.

@rajivharlalka
Created November 7, 2022 03:34
Show Gist options
  • Save rajivharlalka/28fda216a7b5e61bcc781d6db048078c to your computer and use it in GitHub Desktop.
Save rajivharlalka/28fda216a7b5e61bcc781d6db048078c to your computer and use it in GitHub Desktop.
A list of zsh functions I use for better terminal efficiency.
#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