X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=7b0f7a9957a88553199b5f7c92f01e1eaa386bc6;hb=a030fbf7262708ddbd62d40f59720bad46e6e7a3;hp=50fac90f6533671befa5b739ed4a5d2de1b212f6;hpb=f0abc10568ce9a8348a3bcf64781bfad6e768317;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 50fac90..7b0f7a9 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1913,6 +1913,19 @@ if check_com -c $PAGER ; then _dnews() { _files -W /usr/share/doc -/ } compdef _dnews dnews + #f1# View Debian's copyright of a given package + dcopyright() { + emulate -L zsh + if [[ -r /usr/share/doc/$1/copyright ]] ; then + $PAGER /usr/share/doc/$1/copyright + else + echo "No copyright file for package $1 found, sorry." + return 1 + fi + } + _dcopyright() { _files -W /usr/share/doc -/ } + compdef _dcopyright dcopyright + #f1# View upstream's changelog of a given package uchange() { emulate -L zsh