Skip to content

Instantly share code, notes, and snippets.

@JuoCode
Created May 4, 2016 02:45
Show Gist options
  • Save JuoCode/7cfebbec24950d9bef6b037dd3969665 to your computer and use it in GitHub Desktop.
Save JuoCode/7cfebbec24950d9bef6b037dd3969665 to your computer and use it in GitHub Desktop.
Greet to cd
# Greet to cd
cd() {
builtin cd "$1"
DIR=`pwd`
if [ -f "${DIR}/.greet" ]; then
bash ${DIR}/.greet
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment