mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
Portmaster completions
* Added FreeBSD's pkg to __fish_print_packages * Portmaster completes on installed packages and ports * Options list as per fish_generate_completions, needs to be tidied up further but will suffice for now
This commit is contained in:
committed by
ridiculousfish
parent
e027492e11
commit
292908c00a
@@ -22,6 +22,17 @@ function __fish_print_packages
|
||||
return
|
||||
end
|
||||
|
||||
# Pkg is fast on FreeBSD and provides versioning info which we want for
|
||||
# installed packages
|
||||
if begin
|
||||
type -f pkg > /dev/null
|
||||
and test (uname) = "FreeBSD"
|
||||
end
|
||||
pkg query "%n-%v"
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
# yum is slow, just like rpm, so go to the background
|
||||
if type -f /usr/share/yum-cli/completion-helper.py >/dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user