fork/fish-shell

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

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
527 B21 linesraw
1# localization: skip(private)
2function __fish_complete_atool_archive_contents --description 'List archive contents'
3    set -l cmd (commandline -cxp)
4    set -e cmd[1]
5    set -l file
6    for arg in $cmd
7        switch $arg
8            case '-*'
9            case '*'
10                if test -f $arg
11                    set file $arg
12                    break
13                end
14        end
15    end
16    if not set -q file[1]
17        return
18    end
19    als $file -qq | sed -r 's/^\s*[0-9]+\s+[0-9-]+\s+[0-9:]+\s+(.*)$/\1/'
20
21end