mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00: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
|