mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 05:03:46 +08:00
6 lines
171 B
Fish
6 lines
171 B
Fish
|
# determine if this is the very first argument (regardless if switch or not)
|
||
|
function __fish_is_first_arg
|
||
|
set -l tokens (commandline -co)
|
||
|
test (count $tokens) -eq 1
|
||
|
end
|