2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-27 20:25:12 +00:00
fish-shell/share/functions/__fish_is_first_arg.fish

6 lines
178 B
Fish
Raw Normal View History

# determine if this is the very first argument (regardless if switch or not)
function __fish_is_first_arg
set -l tokens (commandline -pxc)
test (count $tokens) -eq 1
end