mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-04 19:03:38 +00:00
fix(fish): add missing arguments for fish transient prompt functions (#6181)
Fixes #6180
This commit is contained in:
parent
cbc22a316d
commit
d6814be0ba
@ -16,7 +16,7 @@ function fish_prompt
|
|||||||
# See https://github.com/fish-shell/fish-shell/issues/8418
|
# See https://github.com/fish-shell/fish-shell/issues/8418
|
||||||
printf \e\[0J
|
printf \e\[0J
|
||||||
if type -q starship_transient_prompt_func
|
if type -q starship_transient_prompt_func
|
||||||
starship_transient_prompt_func
|
starship_transient_prompt_func --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus="$STARSHIP_CMD_PIPESTATUS" --keymap=$STARSHIP_KEYMAP --cmd-duration=$STARSHIP_DURATION --jobs=$STARSHIP_JOBS
|
||||||
else
|
else
|
||||||
printf "\e[1;32m❯\e[0m "
|
printf "\e[1;32m❯\e[0m "
|
||||||
end
|
end
|
||||||
@ -40,7 +40,7 @@ function fish_right_prompt
|
|||||||
if test "$RIGHT_TRANSIENT" = "1"
|
if test "$RIGHT_TRANSIENT" = "1"
|
||||||
set -g RIGHT_TRANSIENT 0
|
set -g RIGHT_TRANSIENT 0
|
||||||
if type -q starship_transient_rprompt_func
|
if type -q starship_transient_rprompt_func
|
||||||
starship_transient_rprompt_func
|
starship_transient_rprompt_func --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus="$STARSHIP_CMD_PIPESTATUS" --keymap=$STARSHIP_KEYMAP --cmd-duration=$STARSHIP_DURATION --jobs=$STARSHIP_JOBS
|
||||||
else
|
else
|
||||||
printf ""
|
printf ""
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user