Created
June 23, 2015 20:44
-
-
Save zsombor/7333fc0a8fa620f11370 to your computer and use it in GitHub Desktop.
scratch
This file contains hidden or 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
# 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