From c6507006d994df8ed5f0201ba2df8b05f67d0c0c Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 7 Jun 2020 10:46:56 +0000 Subject: [PATCH] fish_prompt.fish: Fix space error --- fish/functions/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)