mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
1288877033
Don't attempt to complete against package names if the user is trying to enter a switch to speed things up. Also work around #5267 by not wrapping unfiltered `all-the-package-name` calls in a function.
4 lines
123 B
Fish
4 lines
123 B
Fish
# Whether or not the current token is a switch
|
|
function __fish_is_switch
|
|
string match -qr -- '^-' ""(commandline -ct)
|
|
end
|