Home directory contraction in path

This commit is contained in:
Scott Perry 2013-05-01 01:06:25 -07:00
parent b089ef626d
commit f19a08341a

View File

@ -37,7 +37,8 @@ function fish_prompt
end
# Unconditional stuff
set -l basic_prompt $yellow(whoami)$normal" at "$green(hostname -s)$normal" in "$blue(pwd)" "
set -l path $blue(pwd | sed "s:^$HOME:~:")
set -l basic_prompt $yellow(whoami)$normal" at "$green(hostname -s)$normal" in "$blue$path" "
# Prompt
set -l prompt