2012-03-26 01:38:33 +00:00
|
|
|
function fish_config --description "Launch fish's web based configuration"
|
2017-04-20 11:37:27 +00:00
|
|
|
set -lx __fish_bin_dir $__fish_bin_dir
|
|
|
|
if command -sq python3
|
2018-03-12 13:34:20 +00:00
|
|
|
python3 "$__fish_data_dir/tools/web_config/webconfig.py" $argv
|
2017-04-20 11:37:27 +00:00
|
|
|
else if command -sq python2
|
2018-03-12 13:34:20 +00:00
|
|
|
python2 "$__fish_data_dir/tools/web_config/webconfig.py" $argv
|
2017-04-20 11:37:27 +00:00
|
|
|
else if command -sq python
|
2018-03-12 13:34:20 +00:00
|
|
|
python "$__fish_data_dir/tools/web_config/webconfig.py" $argv
|
2019-01-14 11:08:44 +00:00
|
|
|
else
|
2019-01-14 11:23:47 +00:00
|
|
|
echo (set_color $fish_color_error)Cannot launch the web configuration tool:(set_color normal)
|
2019-01-14 11:08:44 +00:00
|
|
|
echo (set_color -o)fish_config(set_color normal) requires Python.
|
2019-01-14 11:23:47 +00:00
|
|
|
echo Installing python2 or python3 will fix this, and also enable completions to be
|
|
|
|
echo automatically generated from man pages.\n
|
|
|
|
echo To change your prompt, create a (set_color -o)fish_prompt(set_color normal) function.
|
2019-01-14 11:08:44 +00:00
|
|
|
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.
|
2016-11-28 05:27:22 +00:00
|
|
|
end
|
2012-03-26 01:38:33 +00:00
|
|
|
end
|