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

Part of #11833

(cherry picked from commit a53db72564)
2025-09-30 11:52:41 +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