fork/fish-shell

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

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
423 B15 linesraw
1# localization: skip(private)
2function __fish_print_opkg_packages
3    type -q -f opkg || return 1
4
5    argparse i/installed -- $argv
6    or return 1
7
8    if set -q _flag_installed
9        opkg list-installed 2>/dev/null | sed -r 's/^([a-zA-Z0-9\-]+) - ([a-zA-Z0-9\-]+)/\1\t\2/g'
10        return 0
11    else
12        opkg list 2>/dev/null | sed -r 's/^([a-zA-Z0-9\-]+) - ([a-zA-Z0-9\-]+)/\1\t\2/g'
13        return 0
14    end
15end