1
1
Fork 0

fish_prompt.fish: Fix space error

This commit is contained in:
Jonathan Schleifer 2020-06-07 10:46:56 +00:00
parent d08c149859
commit c6507006d9

View file

@ -8,7 +8,7 @@ function fish_prompt --description 'Write out the prompt'
end end
set -l branch (fossil branch current 2>/dev/null) set -l branch (fossil branch current 2>/dev/null)
if test -z "$branch" if test -z "$branch"
set branch (git symbolic-ref HEAD 2>/dev/null) set branch (git symbolic-ref HEAD 2>/dev/null)
set branch (string replace -r "^refs/heads/" "" $branch) set branch (string replace -r "^refs/heads/" "" $branch)