Skip to content

Instantly share code, notes, and snippets.

@Hirurg103
Last active September 3, 2018 14:33
Show Gist options
  • Save Hirurg103/5ee0d4a83abbff1fae8424d5145042a3 to your computer and use it in GitHub Desktop.
Save Hirurg103/5ee0d4a83abbff1fae8424d5145042a3 to your computer and use it in GitHub Desktop.
I use this function to navigate between projects
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