mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
8223e6f23e
`fish_config theme`: - `list` to list all available themes (files in the two theme directories - either the web_config/themes one or ~/.config/fish/themes!) - `show` to show select (or all) themes right in the terminal - this starts another fish that reads the theme file and prints the sample text, manually colored - `choose` to load a theme *now*, setting the variables globally - `save` to load a theme and save the variables universally - `dump` to write the current theme in .theme format (to stdout) - `demo` to display the current theme
31 lines
2.3 KiB
Fish
31 lines
2.3 KiB
Fish
complete fish_config -f
|
|
set -l prompt_commands choose save show list
|
|
set -l theme_commands choose demo dump save show list
|
|
complete fish_config -n '__fish_use_subcommand' -a prompt -d 'View and pick from the sample prompts'
|
|
complete fish_config -n "__fish_seen_subcommand_from prompt; and not __fish_seen_subcommand_from $prompt_commands" \
|
|
-a choose -d 'View and pick from the sample prompts'
|
|
complete fish_config -n "__fish_seen_subcommand_from prompt; and not __fish_seen_subcommand_from $prompt_commands" \
|
|
-a show -d 'Show what prompts would look like'
|
|
complete fish_config -n "__fish_seen_subcommand_from prompt; and not __fish_seen_subcommand_from $prompt_commands" \
|
|
-a list -d 'List all available prompts'
|
|
complete fish_config -n "__fish_seen_subcommand_from prompt; and not __fish_seen_subcommand_from $prompt_commands" \
|
|
-a save -d 'Save the current or given prompt to ~/.config/fish'
|
|
complete fish_config -n '__fish_seen_subcommand_from prompt; and __fish_seen_subcommand_from choose save show' -a '(fish_config prompt list)'
|
|
|
|
complete fish_config -n '__fish_use_subcommand' -a browse -d 'Open the web-based UI'
|
|
|
|
complete fish_config -n '__fish_use_subcommand' -a theme -d 'View and pick from the sample themes'
|
|
complete fish_config -n '__fish_seen_subcommand_from theme; and __fish_seen_subcommand_from choose save show' -a '(fish_config theme list)'
|
|
complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
|
|
-a choose -d 'View and pick from the sample themes'
|
|
complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
|
|
-a show -d 'Show what theme would look like'
|
|
complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
|
|
-a list -d 'List all available themes'
|
|
complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
|
|
-a save -d 'Save the given theme as universal variables'
|
|
complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
|
|
-a demo -d 'Show example in the current theme'
|
|
complete fish_config -n "__fish_seen_subcommand_from theme; and not __fish_seen_subcommand_from $theme_commands" \
|
|
-a dump -d 'Print the current theme in .theme format'
|