Created
August 24, 2015 23:50
-
-
Save lon9/8fb808be190843f843a4 to your computer and use it in GitHub Desktop.
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
#!/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