## gui package — undo the starship prompt that HyDE's fish snippet installs. ## ## The HyDE 26.x update dropped an untracked ~/.config/fish/conf.d/hyde.fish that ## runs `starship init fish | source`. That eagerly defines fish_prompt AND ## fish_right_prompt, which shadows our own functions/fish_prompt.fish: fish only ## autoloads a function that is not already defined, so ours never loaded and ## every new shell came up with starship's prompt. ## ## conf.d is sourced alphabetically, so this file must sort AFTER hyde.fish to ## undo it — hence zz-. ## ## Note it *sources* our prompts rather than erasing starship's: `functions --erase` ## on an autoloadable name also suppresses the autoload, which leaves the shell ## with no fish_prompt at all ("Unknown command: fish_prompt"). Defining ours over ## the top is what actually wins — for fish_right_prompt too, since common ships ## functions/fish_right_prompt.fish (the git-status right prompt). ## ## Nothing else from hyde.fish is undone here: its aliases lose to config.fish, ## which fish loads after conf.d, and its `df` wrapper is a function we do not ## otherwise define. Delete this file if you ever decide you want starship. for f in fish_prompt fish_right_prompt fish_mode_prompt if test -r $__fish_config_dir/functions/$f.fish source $__fish_config_dir/functions/$f.fish end end