Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelsonic/cb4143e3b5be7bfd9a5cf73dfa74a6ac to your computer and use it in GitHub Desktop.
Save nelsonic/cb4143e3b5be7bfd9a5cf73dfa74a6ac to your computer and use it in GitHub Desktop.
Show full path on OS X terminal / iTerm before the $ prompt
1. Edit ~/.bash_profile and add the following line to show full path before the $ prompt.
For example, as user@hostname:path/to/directory$
# show path before the $ prompt
export PS1='\u@\H:\w$ '
2. Save file and restart terminal or run source command
$ source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment