Skip to content

Instantly share code, notes, and snippets.

@JakeTheCorn
Created February 18, 2020 01:44
Show Gist options
  • Save JakeTheCorn/9b6d92f7e506fb92287e742d633ffe15 to your computer and use it in GitHub Desktop.
Save JakeTheCorn/9b6d92f7e506fb92287e742d633ffe15 to your computer and use it in GitHub Desktop.
bash up function usage: up 3 instead of cd ../../.. (not sure where I got this)
up() {
local n=$1
for (( i=1; i<=$n; i++ ))
do
cd ..
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment