Workaround for fish splitting on newlines when doing command substitution

This commit is contained in:
Kovid Goyal 2021-09-15 18:12:40 +05:30
parent a073936997
commit 0a56ab7a1e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -60,7 +60,7 @@ function _ksi_main
function _ksi_end_prompt
set --local cmd_status "$status"
set --local op (_ksi_original_fish_prompt) # trim trailing newlines to mimic fish behavior
set --local op (_ksi_original_fish_prompt | string collect) # trim trailing newlines to mimic fish behavior
printf "%s" "$op"
set --global _ksi_prompt_state "prompt_end"
_ksi_mark "B"