mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
Fish shell integration: Strip trailing newlines from the original fish prompt as fish does this
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user