diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish index ea144b9..2582688 100644 --- a/fish/functions/fish_prompt.fish +++ b/fish/functions/fish_prompt.fish @@ -11,7 +11,7 @@ function fish_prompt --description 'Write out the prompt' set branch (string replace -r "^refs/heads/" "" $branch) if test -z "$branch" - set branch (fossil branch current) + set branch (fossil branch current 2>/dev/null) end set -l vcs