feat: add catppuccin nim-style fallback prompt and overhaul right prompt #47
Reference in New Issue
Block a user
Delete Branch "feat/catppuccin-fallback-prompt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
functions/fish_prompt.fish— Catppuccin Mocha nim-style two-line fallback prompt with zero external dependencies. Activates automatically when Starship is absent or C3 overrides (__fish_config_op_overrides) are disabled. Shows user@host:path, git branch in pink, vi-mode indicator, venv, and background jobs; connector lines switch green↔red on exit status.functions/fish_mode_prompt.fish— empty stub that suppresses fish's default vi-mode prefix (which would double-print the indicator alongside the one built into the fallback prompt).functions/fish_right_prompt.fish— fixed$statuscapture (was being clobbered before it was read), removed blanket C3 guard so the right prompt renders in all modes, removed Docker context and nerd-font dependency. Now always shows:✘ Nin Catppuccin red when the last command failed (hidden on success), followed by a dim timestamp.### Catppuccin Fallback Promptsubsection indocs/fish-config.md, component reference and starship entry updated,docs/fish-config.indexextended with prompt/theme keywords, README overview updated.Manual Verification
false, confirm the right prompt shows✘ 1 HH:MM:SS; aftertrue, confirm only the timestamp shows.fish -c 'functions -e fish_prompt; source ~/.config/fish/functions/fish_prompt.fish; source ~/.config/fish/functions/fish_mode_prompt.fish; true; fish_prompt; echo ---; false; fish_prompt'. Confirm two-line output with green connectors on the first call and red connectors on the second, and(feat/catppuccin-fallback-prompt)in pink on the first line.set -U __fish_config_op_overrides 0, open a new shell, verify the Catppuccin fallback prompt appears. Reset withset -Ue __fish_config_op_overrides.set -U __fish_config_op_overrides 0), runfalseand confirm the right prompt still shows✘ 1 HH:MM:SS. Reset afterward.fish_mode_promptis silent: Runfish -c 'source ~/.config/fish/functions/fish_mode_prompt.fish; fish_mode_prompt | wc -c'and confirm output is0.