Created
May 19, 2014 23:26
-
-
Save raamdev/ad88784311bb7f58ff2f to your computer and use it in GitHub Desktop.
cd + pwd
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
cd_pwd() | |
{ | |
if [ $# -eq 0 ]; then | |
DIR="${HOME}" | |
else | |
DIR="$1" | |
fi | |
cd "${DIR}" | |
pwd | |
} | |
alias cd="cd_pwd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment