mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-02 17:01:43 +08:00
fish_config: tell the user some nice things without Python
As discussed in #5492, it would be good if running fish_config without Python actually told the user to install Python. Further, let's give the person some hints on how to configure these things by hand, since they may have to.
This commit is contained in:
parent
5b12d703dd
commit
3bf702067a
|
@ -6,5 +6,12 @@ function fish_config --description "Launch fish's web based configuration"
|
|||
python2 "$__fish_data_dir/tools/web_config/webconfig.py" $argv
|
||||
else if command -sq python
|
||||
python "$__fish_data_dir/tools/web_config/webconfig.py" $argv
|
||||
else
|
||||
echo (set_color $fish_color_error)Cannot launch the web configuration tool.(set_color normal)
|
||||
echo (set_color -o)fish_config(set_color normal) requires Python.
|
||||
echo Installing Python will fix this, and also enable completions to be automatically generated from man pages.\n
|
||||
echo To configure your prompt, create a (set_color -o)fish_prompt(set_color normal) function.
|
||||
echo There are examples in (set_color $fish_color_valid_path)$__fish_data_dir/tools/web_config/sample_prompts(set_color normal).\n
|
||||
echo You can tweak your colors by setting the (set_color $fish_color_search_match)\$fish_color_\*(set_color normal) variables.
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user