mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 13:01:21 -03:00
fish_config: don't redo __fish_bin_dir computation
__fish_bin_dir is already computed exactly like this.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user