aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_test_arg.fish
blob: 6ebe8fb0b7c1a49b426993e3c3ca2b7abb92ee59 (plain)
1
2
3
4
5
6
7
8
9

function __fish_test_arg --description "Test if the token under the cursor matches the specified wildcard"
    switch (commandline -ct)
        case $argv
            return 0
        end
    return 1
end