mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
Home directory contraction in path
This commit is contained in:
parent
b089ef626d
commit
f19a08341a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user