Index: fish/functions/fish_prompt.fish ================================================================== --- fish/functions/fish_prompt.fish +++ fish/functions/fish_prompt.fish @@ -6,11 +6,11 @@ case '*' set suffix '>' 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) end