mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-26 19:30:38 +03:00
Use fish_git_prompt %s trick instead of string replace
This commit is contained in:
parent
9d512a451c
commit
a21c438a20
@ -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
|
Loading…
Reference in New Issue
Block a user