mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-19 05:13:44 +08:00
29f35d6cdf
This gives us more accurate completions because completion scripts get expanded paths
6 lines
178 B
Fish
6 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
|