mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-14 05:31:14 -03:00
6 lines
156 B
Fish
6 lines
156 B
Fish
# localization: skip(private)
|
|
# Whether or not the current token is a switch
|
|
function __fish_is_switch
|
|
string match -qr -- '^-' ""(commandline -ct)
|
|
end
|