Last active
March 21, 2016 15:21
-
-
Save baku89/c5ee330c07e79a1ab45a to your computer and use it in GitHub Desktop.
cdw
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
| cdw() { | |
| cd ${WORKDIR} | |
| if [ $# != 0 ]; then | |
| cd ${WORKDIR} | |
| projDir=$(ls | grep ${1}) | |
| if [ -d "$projDir" ]; then | |
| cd ${projDir} | |
| else | |
| echo "\"${1}\" does not exists \n" | |
| ls | |
| fi | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment