Use fish_git_prompt %s trick instead of string replace

This commit is contained in:
Ilan Cosman 2020-05-23 10:27:46 -07:00
parent 9d512a451c
commit a21c438a20

View File

@ -1,9 +1,3 @@
function _tide_item_git_prompt
if set -l gitPrompt (fish_git_prompt)
set -l gitPrompt (string replace '(' '' $gitPrompt)
set -l gitPrompt (string replace ')' '' $gitPrompt)
printf '%s ' (string trim $gitPrompt)
end
fish_git_prompt '%s '
end