diff --git a/home/.config/sh/theme b/home/.config/sh/theme index c598ff0..540c1e3 100755 --- a/home/.config/sh/theme +++ b/home/.config/sh/theme @@ -24,6 +24,11 @@ else fi RESET="%f" +# Once we are too deep in the filestructure, we can usually afford to shorten +# the whole working directory and only print something like ~/.../dir3/dir4/dir5 +# instead of ~/dir1/dir2/dir3/dir4/dir5. If this isn't desired, set this to 0 +USE_SHORTENED_WORKDIR=1 + # Signals git status of CWD repository (if any) git_prompt() { ref=$(command git symbolic-ref HEAD 2> /dev/null) || ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0 @@ -38,20 +43,34 @@ git_prompt() { foreign_prompt() { if [ "$(awk '$5=="/" {print $1}'