Skip to content

Commit

Permalink
setup/fish: handle case where fish_right_prompt dne
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed Sep 17, 2024
1 parent 421b814 commit 7e2db72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/setup/savvy.fish
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ function __savvy_run_prompt --description "Modify prompt for Savvy run"
functions -c fish_prompt __pre_savvy_run_prompt
end

if not functions -q fish_right_prompt
# If fish_right_prompt doesn't exist, create an empty one
function fish_right_prompt
# Empty function
end
end

if not functions -q __pre_savvy_run_right_prompt
functions -c fish_right_prompt __pre_savvy_run_right_prompt
end
Expand Down

0 comments on commit 7e2db72

Please sign in to comment.