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:
Torsten Grust 2012-08-30 13:17:32 +02:00
parent a3c4de52d6
commit 122791646e

View File

@ -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