Skip to content

Instantly share code, notes, and snippets.

@jonsuh
Last active December 19, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonsuh/5951644 to your computer and use it in GitHub Desktop.
Save jonsuh/5951644 to your computer and use it in GitHub Desktop.
Bash script for "w project.com"
function w(){
if [ -e ~/projects/$1 ]
then
cd ~/projects/$1
if [ "$1" != "" ]
then
echo -e "Switched to $1."
else
echo -e "Switched to project directory."
fi
else
echo -e "$1 does not exist."
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment