mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
29f35d6cdf
This gives us more accurate completions because completion scripts get expanded paths
5 lines
178 B
Fish
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 -pxc)
|
|
test (count $tokens) -eq 1
|
|
end
|