Files
fish-shell/share/functions/__fish_is_first_arg.fish
Johannes Altmanninger a53db72564 Mark private functions that don't need localization
See the next commit.

Part of #11833
2025-09-30 11:47:26 +02:00

7 lines
208 B
Fish

# localization: skip(private)
# 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