Fish shell integration: Strip trailing newlines from the original fish prompt as fish does this
This commit is contained in:
parent
5c1dd69963
commit
a073936997
1 changed files with 2 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ function _ksi_main
|
|||
|
||||
function _ksi_end_prompt
|
||||
set --local cmd_status "$status"
|
||||
_ksi_original_fish_prompt
|
||||
set --local op (_ksi_original_fish_prompt) # trim trailing newlines to mimic fish behavior
|
||||
printf "%s" "$op"
|
||||
set --global _ksi_prompt_state "prompt_end"
|
||||
_ksi_mark "B"
|
||||
return "$cmd_status" # preserve the value of $status
|
||||
|
|
|
|||
Loading…
Reference in a new issue