fork/fish-shell

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

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
474 B18 linesraw
1# localization: skip(private)
2function __fish_complete_path --description "Complete using path"
3    set -l target
4    set -l description
5    switch (count $argv)
6        case 0
7            # pass
8        case 1
9            set target "$argv[1]"
10        case 2 "*"
11            set target "$argv[1]"
12            set description "$argv[2]"
13    end
14    set -l targets (complete -C"'' $target")
15    if set -q targets[1]
16        printf "%s\n" $targets\t"$description"
17    end
18end