2018-05-06 23:46:56 +00:00
|
|
|
# determine if this is the very first argument (regardless if switch or not)
|
|
|
|
function __fish_is_first_arg
|
2021-06-15 01:36:31 +00:00
|
|
|
set -l tokens (commandline -poc)
|
2019-05-05 10:09:25 +00:00
|
|
|
test (count $tokens) -eq 1
|
2018-05-06 23:46:56 +00:00
|
|
|
end
|