fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerUse globals for color variables, react to light/dark mode190d367bc

master
2.5 KiB31 linesraw
1complete fish_config -f
2set -l prompt_commands choose save show list
3set -l theme_commands choose demo dump save show list
4complete fish_config -n __fish_use_subcommand -a prompt -d 'View and pick from the sample prompts'
5complete fish_config -n "__fish_seen_subcommand_from prompt; and not __fish_seen_subcommand_from $prompt_commands" \
6    -a choose -d 'View and pick from the sample prompts'
7complete fish_config -n "__fish_seen_subcommand_from prompt; and not __fish_seen_subcommand_from $prompt_commands" \
8    -a show -d 'Show what prompts would look like'
9complete fish_config -n "__fish_seen_subcommand_from prompt; and not __fish_seen_subcommand_from $prompt_commands" \
10    -a list -d 'List all available prompts'
11complete fish_config -n "__fish_seen_subcommand_from prompt; and not __fish_seen_subcommand_from $prompt_commands" \
12    -a save -d 'Save the current or given prompt to ~/.config/fish'
13complete fish_config -n '__fish_seen_subcommand_from prompt; and __fish_seen_subcommand_from choose save show' -a '(fish_config prompt list)'
14
15complete fish_config -n __fish_use_subcommand -a browse -d 'Open the web-based UI'
16
17complete fish_config -n __fish_use_subcommand -a theme -d 'View and pick from the sample themes'
18complete fish_config -n '__fish_seen_subcommand_from theme; and __fish_seen_subcommand_from choose save show' -a '(fish_config theme list)'
19complete fish_config -n '__fish_seen_subcommand_from theme; and __fish_seen_subcommand_from choose save' -l color-theme -xa 'dark light unknown' -d 'Use this variant, overriding $fish_terminal_color_theme'
20complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
21    -a choose -d 'View and pick from the sample themes'
22complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
23    -a show -d 'Show what theme would look like'
24complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
25    -a list -d 'List all available themes'
26complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
27    -a save -d 'Save the given theme as universal variables'
28complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
29    -a demo -d 'Show example in the current theme'
30complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
31    -a dump -d 'Print the current theme in .theme format'