initial
[zsh.git] / .zsh / distri:Debian / Functions.zsh
1 # -*- mode: sh;-*-
2
3 #f1# View Debian's changelog of a given package
4 dchange() {
5 emulate -L zsh
6 if [[ -r /usr/share/doc/$1/changelog.Debian.gz ]] ; then
7 $PAGER /usr/share/doc/$1/changelog.Debian.gz
8 elif [[ -r /usr/share/doc/$1/changelog.gz ]] ; then
9 $PAGER /usr/share/doc/$1/changelog.gz
10 else
11 if which aptitude ; then
12 echo "No changelog for package $1 found, using aptitude to retrieve it."
13 aptitude changelog $1
14 else
15 echo "No changelog for package $1 found, sorry."
16 return 1
17 fi
18 fi
19 }
20 _dchange() { _files -W /usr/share/doc -/ }