mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
fish_config: Find fish via fish-path
This commit is contained in:
parent
8447c32d65
commit
ebf19c22fd
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ function fish_config --description "Launch fish's web based configuration"
|
|||
# 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)
|
||||
$python "$__fish_data_dir/tools/web_config/webconfig.py" $argv
|
||||
|
||||
|
|
Loading…
Reference in a new issue