fork/fish-shell

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

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
473 B13 linesraw
1# localization: skip(private)
2function __fish_print_pkg_add_packages
3    # pkg_info on OpenBSD provides versioning info which we want for
4    # installed packages but, calling it directly can cause delays in
5    # returning information if another pkg_* tool have a lock.
6    # Listing /var/db/pkg is a clean alternative.
7    if type -q -f pkg_add
8        set -l files /var/db/pkg/*
9        string replace /var/db/pkg/ '' -- $files
10        return 0
11    end
12    return 1
13end