From a21c438a20dec5d7affb8e1c29fd41ec61b827c9 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Sat, 23 May 2020 10:27:46 -0700 Subject: [PATCH] Use fish_git_prompt %s trick instead of string replace --- functions/_tide_item_git_prompt.fish | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/functions/_tide_item_git_prompt.fish b/functions/_tide_item_git_prompt.fish index 7de33f0..f9e934e 100644 --- a/functions/_tide_item_git_prompt.fish +++ b/functions/_tide_item_git_prompt.fish @@ -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 \ No newline at end of file