Skip to content

Commit

Permalink
fix: shell integration for fish can break prompt layout (#301)
Browse files Browse the repository at this point in the history
Signed-off-by: Chapman Pendery <[email protected]>
  • Loading branch information
cpendery authored Nov 8, 2024
1 parent 73bac75 commit 9e995bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shell/shellIntegration.fish
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ if [ "$ISTERM_TESTING" = "1" ]
function is_user_prompt; printf '> '; end
end
function fish_prompt; __is_prompt_start; is_user_prompt; __is_prompt_end; end
function fish_prompt;
set --local __user_prompt_lines (is_user_prompt)
set --local __user_prompt (string join '\n' $__user_prompt_lines)
set --local __prompt (string join '' (__is_prompt_start) $__user_prompt (__is_prompt_end))
printf $__prompt
end

0 comments on commit 9e995bb

Please sign in to comment.