From ce5b5ec05366943a9668733eb1a19f9f2938fef3 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 13 Oct 2025 17:12:16 +0200 Subject: [PATCH] fish_config prompt {choose,save}: delete code clone The "choose" one did not define fish_prompt unconditionally but that looks like a bug. --- share/functions/fish_config.fish | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/share/functions/fish_config.fish b/share/functions/fish_config.fish index e69189d3f..25e4289d1 100644 --- a/share/functions/fish_config.fish +++ b/share/functions/fish_config.fish @@ -124,7 +124,7 @@ function fish_config --description "Launch fish's web based configuration" echo "No such prompt: '$argv[1]'" >&2 return 1 end - __fish_data_with_file $prompt_path __fish_config_prompt_save + __fish_data_with_file $prompt_path __fish_config_prompt_choose end funcsave fish_prompt @@ -353,15 +353,6 @@ function __fish_config_matching end function __fish_config_prompt_choose - if functions -q fish_right_prompt - # Unfortunately this disables autoloading for - # the rest of this session. - functions --erase fish_right_prompt - end - source $argv[1] # N.B We're passed either stdin or argv. -end - -function __fish_config_prompt_save # Set the functions to empty so we empty the file # if necessary. function fish_prompt