X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=33b60eab9d9e99cc3c8341a6d2c336e1ebdbce7c;hb=c37569497bb5b632f8db23cbaa4a46c00e033976;hp=c05bc6cea42b4179e2770f7da7e9ab57012a9295;hpb=ece9edc246b09d94656edb8391b80adfe45a3364;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c05bc6c..33b60ea 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: Fre Jun 29 11:46:37 CEST 2007 [mika] +# Latest change: Mon Jul 02 18:17:08 CEST 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -790,7 +790,7 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# " alias ...='cd ../../' # generate alias named "$KERNELVERSION-reboot" so you can use boot with kexec: - if [ -x /sbin/kexec ] ; then + if [ -x /sbin/kexec -a -r /proc/cmdline ] ; then alias "$(uname -r)-reboot"="kexec -l --initrd=/boot/initrd.img-"$(uname -r)" --command-line=\"$(cat /proc/cmdline)\" /boot/vmlinuz-"$(uname -r)"" fi @@ -1256,8 +1256,13 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." if [ -r /usr/share/doc/${1}/changelog.Debian.gz ] ; then most /usr/share/doc/${1}/changelog.Debian.gz else - if [ -r /usr/share/doc/${1}/changelog.gz ] ; then - most /usr/share/doc/${1}/changelog.gz + if type -p aptitude &>/dev/null ; then + echo "No changelog for package $1 found, using aptitude to retrieve it." + if isgrml ; then + aptitude -t unstable changelog tsclient + else + aptitude changelog ${1} + fi else echo "No changelog for package $1 found, sorry." return 1