mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
5 lines
123 B
Fish
5 lines
123 B
Fish
|
# Whether or not the current token is a switch
|
||
|
function __fish_is_switch
|
||
|
string match -qr -- '^-' ""(commandline -ct)
|
||
|
end
|