2018-05-07 07:46:56 +08:00
|
|
|
# determine if this is the very first argument (regardless if switch or not)
|
|
|
|
function __fish_is_first_arg
|
2024-01-22 14:42:45 +08:00
|
|
|
set -l tokens (commandline -pxc)
|
2019-05-05 18:09:25 +08:00
|
|
|
test (count $tokens) -eq 1
|
2018-05-07 07:46:56 +08:00
|
|
|
end
|