~razzi/fish-functions

0dc8b83b58f513b65b0def97959b11c4ba8e655b — Razzi Abuissa 9 months ago 8a9d735
apt-description and completion using dpkg --get-selections
2 files changed, 4 insertions(+), 0 deletions(-)

A completions/apt-description.fish
A functions/apt-description.fish
A completions/apt-description.fish => completions/apt-description.fish +1 -0
@@ 0,0 1,1 @@
complete -x -c apt-description -a '(dpkg --get-selections | grep -v deinstall | coln 1)'

A functions/apt-description.fish => functions/apt-description.fish +3 -0
@@ 0,0 1,3 @@
function apt-description --argument package
apt-cache show $package | sed '/^$/Q' | grep --color=never -E '^Description-en:|^ '
end