From c4cf066a1831e130768de35396be282dac260976 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Thu, 10 Feb 2022 02:07:43 -0300 Subject: [PATCH] fish: ignore if git not present --- dotfiles/fish/prompt.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles/fish/prompt.fish b/dotfiles/fish/prompt.fish index c86e82a..b39fc3c 100644 --- a/dotfiles/fish/prompt.fish +++ b/dotfiles/fish/prompt.fish @@ -48,6 +48,9 @@ function _fish_prompt_git_remote_branches end function fish_git_prompt + command -qs git + or return + pushd (string replace -r '/\.git(/.*)?$' '' "$PWD") ############################################################