mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-24 13:47:38 +00:00
fix: save pipestatus in fish init functions (#3160)
This commit is contained in:
parent
475e40d069
commit
8ae6548dc0
@ -5,11 +5,12 @@ function fish_prompt
|
|||||||
case '*'
|
case '*'
|
||||||
set STARSHIP_KEYMAP insert
|
set STARSHIP_KEYMAP insert
|
||||||
end
|
end
|
||||||
|
set STARSHIP_CMD_PIPESTATUS $pipestatus
|
||||||
set STARSHIP_CMD_STATUS $status
|
set STARSHIP_CMD_STATUS $status
|
||||||
# Account for changes in variable name between v2.7 and v3.0
|
# Account for changes in variable name between v2.7 and v3.0
|
||||||
set STARSHIP_DURATION "$CMD_DURATION$cmd_duration"
|
set STARSHIP_DURATION "$CMD_DURATION$cmd_duration"
|
||||||
set STARSHIP_JOBS (count (jobs -p))
|
set STARSHIP_JOBS (count (jobs -p))
|
||||||
::STARSHIP:: prompt --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus=$pipestatus --keymap=$STARSHIP_KEYMAP --cmd-duration=$STARSHIP_DURATION --jobs=$STARSHIP_JOBS
|
::STARSHIP:: prompt --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus=$STARSHIP_CMD_PIPESTATUS --keymap=$STARSHIP_KEYMAP --cmd-duration=$STARSHIP_DURATION --jobs=$STARSHIP_JOBS
|
||||||
end
|
end
|
||||||
|
|
||||||
function fish_right_prompt
|
function fish_right_prompt
|
||||||
@ -19,11 +20,12 @@ function fish_right_prompt
|
|||||||
case '*'
|
case '*'
|
||||||
set STARSHIP_KEYMAP insert
|
set STARSHIP_KEYMAP insert
|
||||||
end
|
end
|
||||||
|
set STARSHIP_CMD_PIPESTATUS $pipestatus
|
||||||
set STARSHIP_CMD_STATUS $status
|
set STARSHIP_CMD_STATUS $status
|
||||||
# Account for changes in variable name between v2.7 and v3.0
|
# Account for changes in variable name between v2.7 and v3.0
|
||||||
set STARSHIP_DURATION "$CMD_DURATION$cmd_duration"
|
set STARSHIP_DURATION "$CMD_DURATION$cmd_duration"
|
||||||
set STARSHIP_JOBS (count (jobs -p))
|
set STARSHIP_JOBS (count (jobs -p))
|
||||||
::STARSHIP:: prompt --right --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus=$pipestatus --keymap=$STARSHIP_KEYMAP --cmd-duration=$STARSHIP_DURATION --jobs=$STARSHIP_JOBS
|
::STARSHIP:: prompt --right --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus=$STARSHIP_CMD_PIPESTATUS --keymap=$STARSHIP_KEYMAP --cmd-duration=$STARSHIP_DURATION --jobs=$STARSHIP_JOBS
|
||||||
end
|
end
|
||||||
|
|
||||||
# Disable virtualenv prompt, it breaks starship
|
# Disable virtualenv prompt, it breaks starship
|
||||||
|
Loading…
Reference in New Issue
Block a user