Skip to content

Commit

Permalink
Fix fish shell integration when prompt function doesn't return a string
Browse files Browse the repository at this point in the history
Instead of assuming printf will print the prompt, just evaluate the original fish prompt function (which is what fish itself does)
  • Loading branch information
dberlin authored Sep 21, 2024
1 parent 3003f85 commit e31f0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/shellIntegration.fish
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ if [ "$ISTERM_TESTING" = "1" ]
function is_user_prompt; printf '> '; end
end
function fish_prompt; printf (__is_prompt_start); printf (is_user_prompt); printf (__is_prompt_end); end
function fish_prompt; printf (__is_prompt_start); is_user_prompt; printf (__is_prompt_end); end

0 comments on commit e31f0d7

Please sign in to comment.