2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-23 02:05:07 +00:00
fish-shell/share/functions/__fish_is_first_arg.fish
Johannes Altmanninger 701b7450df __fish_is_first_arg: only look at current process
This fixes the completions in

	btrfs command | btrfs <TAB>

See 
2021-06-15 03:38:52 +02:00

5 lines
178 B
Fish

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