Update fish_vcs_prompt reference in sampleprompts

This commit is contained in:
Fabian Homborg 2019-02-09 16:02:57 +01:00
parent 8c6ae4612b
commit 3a320d7584
3 changed files with 3 additions and 3 deletions

View File

@ -67,5 +67,5 @@ function fish_prompt --description 'Write out the prompt'
set prompt_status ' ' (set_color $fish_color_status) "[$last_status]" "$normal"
end
echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color $fish_color_host) (prompt_hostname) $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (__fish_vcs_prompt) $normal $prompt_status $suffix " "
echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color $fish_color_host) (prompt_hostname) $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal $prompt_status $suffix " "
end

View File

@ -86,7 +86,7 @@ function fish_prompt --description 'Write out the prompt'
echo -n (prompt_pwd)
set_color normal
printf '%s ' (__fish_vcs_prompt)
printf '%s ' (fish_vcs_prompt)
if not test $last_status -eq 0
set_color $fish_color_error

View File

@ -10,5 +10,5 @@ function fish_prompt --description 'Write out the prompt'
set -g __fish_prompt_cwd (set_color $fish_color_cwd)
end
echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) (__fish_vcs_prompt) "$__fish_prompt_normal" '> '
echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) (fish_vcs_prompt) "$__fish_prompt_normal" '> '
end