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 #8060
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