Skip to content

Instantly share code, notes, and snippets.

@lon9
Created August 24, 2015 23:50
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 lon9/8fb808be190843f843a4 to your computer and use it in GitHub Desktop.
Save lon9/8fb808be190843f843a4 to your computer and use it in GitHub Desktop.
#!/bin/sh
#Move any where.
move(){
if [ ! "$#" -eq 1 ]; then
echo "The number of arameters must be 1."
return
fi
case $1 in
android) cd ~/android_workspace ;;
go) cd ~/go1.4/src ;;
front) cd ~/frontend_workspace ;;
django) cd ~/django_workspace ;;
rails) cd ~/rails_workspace ;;
cocos) cd ~/cocos_workspace ;;
php) cd ~/php_workspace ;;
xcode) cd ~/xcode_workspace ;;
*) echo "Directory is not found" ;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment