Sample prompts: Use fish_git_prompt format string

This commit is contained in:
Fabian Homborg
2021-04-01 14:06:52 +02:00
parent 0a395b9568
commit 31f86ed2cf

View File

@@ -112,7 +112,7 @@ function fish_prompt
and _nim_prompt_wrapper $retc V (basename "$VIRTUAL_ENV")
# git
set -l prompt_git (fish_git_prompt | string trim -c ' ()')
set -l prompt_git (fish_git_prompt '%s')
test -n "$prompt_git"
and _nim_prompt_wrapper $retc G $prompt_git