diff --git a/functions/_tide_item_git_prompt.fish b/functions/_tide_item_git_prompt.fish index f9e934e..c6fb950 100644 --- a/functions/_tide_item_git_prompt.fish +++ b/functions/_tide_item_git_prompt.fish @@ -1,3 +1,5 @@ function _tide_item_git_prompt - fish_git_prompt '%s ' + if test -n "$git_dir" + fish_git_prompt '%s ' + end end \ No newline at end of file