From 7e2db726039970af0df6f8986184a00146b4e958 Mon Sep 17 00:00:00 2001 From: Shantanu Date: Mon, 9 Sep 2024 17:20:52 -0700 Subject: [PATCH] setup/fish: handle case where fish_right_prompt dne --- cmd/setup/savvy.fish | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/setup/savvy.fish b/cmd/setup/savvy.fish index b102c19..851d5fe 100644 --- a/cmd/setup/savvy.fish +++ b/cmd/setup/savvy.fish @@ -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