Last active
September 3, 2018 14:33
-
-
Save Hirurg103/5ee0d4a83abbff1fae8424d5145042a3 to your computer and use it in GitHub Desktop.
I use this function to navigate between projects
This file contains hidden or 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
function workon() { | |
echo "export CURRENT_PROJECT=$1" > ~/.current_project | |
cd "$HOME/Documents/work/$1" | |
} | |
[[ -f ~/.current_project ]] && source ~/.current_project | |
[[ $CURRENT_PROJECT ]] && cd ~/Documents/work/$CURRENT_PROJECT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment