tide/functions/_tide_item_git_prompt.fish

9 lines
252 B
Fish
Raw Normal View History

2020-05-20 20:05:33 +03:00
function _tide_item_git_prompt
2020-05-17 20:14:03 +03:00
if set -l gitPrompt (fish_git_prompt)
2020-04-03 01:39:10 +03:00
2020-05-17 20:14:03 +03:00
set -l gitPrompt (string replace '(' '' $gitPrompt)
set -l gitPrompt (string replace ')' '' $gitPrompt)
2020-04-03 01:39:10 +03:00
2020-05-18 20:06:02 +03:00
printf '%s ' (string trim $gitPrompt)
2020-05-17 20:14:03 +03:00
end
2020-04-03 01:39:10 +03:00
end