Skip to content

Instantly share code, notes, and snippets.

@dustinhorton
Created August 12, 2012 06:57
Show Gist options
  • Save dustinhorton/3330310 to your computer and use it in GitHub Desktop.
Save dustinhorton/3330310 to your computer and use it in GitHub Desktop.
Prompt to show current directory path.
export PATH=/usr/local/bin:$PATH
function get_pwd() {
currdir=`pwd`
echo "${currdir/$HOME/~}"
}
export PS1='
`get_pwd`
→'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment