Skip to content

Instantly share code, notes, and snippets.

@zsombor
Created June 23, 2015 20:44
Show Gist options
  • Save zsombor/7333fc0a8fa620f11370 to your computer and use it in GitHub Desktop.
Save zsombor/7333fc0a8fa620f11370 to your computer and use it in GitHub Desktop.
scratch
# bash prompt for deep paths
PS1='\[\033[01;32m\]$(p=${PWD/$HOME/\~};((${#p}>30))&&echo "…${p:(-29)}"||echo "\w")\[\033[00m\]$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment