mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Fix check for non-empty argument (= initial tab) in fish_config
The original version (based on 'test') was creating spurious files named "0" in the current working directory
This commit is contained in:
parent
a3c4de52d6
commit
122791646e
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
function fish_config --description "Launch fish's web based configuration"
|
function fish_config --description "Launch fish's web based configuration"
|
||||||
# Support passing an initial tab like "colors" or "functions"
|
# Support passing an initial tab like "colors" or "functions"
|
||||||
set -l initial_tab
|
set -l initial_tab
|
||||||
if test (count $argv) > 0
|
if count $argv >/dev/null
|
||||||
set initial_tab $argv[1]
|
set initial_tab $argv[1]
|
||||||
end
|
end
|
||||||
eval $__fish_datadir/tools/web_config/webconfig.py $initial_tab
|
eval $__fish_datadir/tools/web_config/webconfig.py $initial_tab
|
||||||
|
|
Loading…
Reference in a new issue