fish: ignore if git not present

This commit is contained in:
lelgenio 2022-02-10 02:07:43 -03:00
parent b278368fca
commit c4cf066a18
1 changed files with 3 additions and 0 deletions

View File

@ -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")
############################################################