fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
327 B13 linesraw
1# localization: skip(private)
2function __fish_use_subcommand -d "Test if a non-switch argument has been given in the current commandline"
3    set -l cmd (commandline -pxc)
4    set -e cmd[1]
5    for i in $cmd
6        switch $i
7            case '-*'
8                continue
9        end
10        return 1
11    end
12    return 0
13end