mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08: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,7 +1,7 @@
|
|||
function fish_config --description "Launch fish's web based configuration"
|
||||
# Support passing an initial tab like "colors" or "functions"
|
||||
set -l initial_tab
|
||||
if test (count $argv) > 0
|
||||
if count $argv >/dev/null
|
||||
set initial_tab $argv[1]
|
||||
end
|
||||
eval $__fish_datadir/tools/web_config/webconfig.py $initial_tab
|
||||
|
|
Loading…
Reference in New Issue
Block a user