mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-21 07:03:41 +08:00
24012b1941
This function doesn't make any sense. Most things that expect package names expect package names for *one specific package manager*. It only happens to work, most of the time, because most people only have one package manager installed.
13 lines
443 B
Fish
13 lines
443 B
Fish
function __fish_print_pkg_add_packages
|
|
# pkg_info on OpenBSD provides versioning info which we want for
|
|
# installed packages but, calling it directly can cause delays in
|
|
# returning information if another pkg_* tool have a lock.
|
|
# Listing /var/db/pkg is a clean alternative.
|
|
if type -q -f pkg_add
|
|
set -l files /var/db/pkg/*
|
|
string replace /var/db/pkg/ '' -- $files
|
|
return 0
|
|
end
|
|
return 1
|
|
end
|