mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-01 06:53:39 +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
|