X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=92a96343da54ff8af0e6aa392c70d5f1c5c32755;hb=215e3f544c360d8bd1651b706fd6088bc1597d3f;hp=b609ce2f678d596f2efcf5199aba8963d8129011;hpb=11963d4f26dd73ae8d8d0009d02d002ac0917ee9;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b609ce2..92a9634 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Jun 09 18:44:38 CEST 2007 [mika] +# Latest change: Die Jun 12 14:00:47 CEST 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -1105,6 +1105,22 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." _dchange() { _files -W /usr/share/doc -/ } compdef _dchange dchange + # use "dnews " to view Debian's NEWS file of the package: + dnews() { + if [ -r /usr/share/doc/${1}/NEWS.Debian.gz ] ; then + most /usr/share/doc/${1}/NEWS.Debian.gz + else + if [ -r /usr/share/doc/${1}/NEWS.gz ] ; then + most /usr/share/doc/${1}/NEWS.gz + else + echo "No NEWS file for package $1 found, sorry." + return 1 + fi + fi + } + _dnews() { _files -W /usr/share/doc -/ } + compdef _dnews dnews + # use "uchange " to view upstream's changelog of the package: uchange() { if [ -r /usr/share/doc/${1}/changelog.gz ] ; then