Created
February 18, 2020 01:44
-
-
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)
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
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