diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish index 12e3d8c..0e3b11a 100644 --- a/fish/functions/fish_prompt.fish +++ b/fish/functions/fish_prompt.fish @@ -8,7 +8,7 @@ function fish_prompt --description 'Write out the prompt' end set -l branch (fossil branch current 2>/dev/null) - + if test -z "$branch" set branch (git symbolic-ref HEAD 2>/dev/null) set branch (string replace -r "^refs/heads/" "" $branch)