fish_config: don't redo __fish_bin_dir computation

__fish_bin_dir is already computed exactly like this.
This commit is contained in:
Johannes Altmanninger
2025-10-15 09:50:16 +02:00
parent 52241712b4
commit ac8ef4da9e

View File

@@ -16,11 +16,9 @@ function fish_config --description "Launch fish's web based configuration"
# The web-based configuration UI
# Also opened with just `fish_config` or `fish_config browse`.
if contains -- $cmd browse
set -lx __fish_bin_dir $__fish_bin_dir
set -l fish_path (status fish-path)
and set __fish_bin_dir (path dirname -- $fish_path)
if set -l python (__fish_anypython)
function __fish_config_webconfig -V python -a web_config
set -lx __fish_bin_dir $__fish_bin_dir
$python $web_config/webconfig.py
end
__fish_data_with_directory tools/web_config '.*' __fish_config_webconfig