From e79087c4b964f0eff4d2149cbaf3948c0b0efeca Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 2 Dec 2006 18:50:04 +0100 Subject: [PATCH] * /etc/zsh/zshrc: fma has been renamed into qma, adjust references therefore and use qma for manzsh too. (This fixes part 2/2 of issue19) --- debian/changelog | 8 ++++++++ etc/zsh/zshrc | 14 ++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 84b9dfa..28c35b4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +grml-etc-core (0.2.7) unstable; urgency=low + + * /etc/zsh/zshrc: fma has been renamed into qma, adjust references + therefore and use qma for manzsh too. (This fixes part 2/2 of + issue19) + + -- Michael Prokop Sat, 2 Dec 2006 18:49:05 +0100 + grml-etc-core (0.2.6) unstable; urgency=low * /etc/zsh/zshrc: update URL for grml repository in zsh-help. diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 89c9ed8..75013ea 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -833,9 +833,15 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." # shell functions {{{ setenv() { typeset -x "${1}${1:+=}${(@)argv[2,$#]}" } # csh compatibility freload() { while (( $# )); do; unfunction $1; autoload -U $1; shift; done } - manzsh() { /usr/bin/man zshall | vim -c "se ft=man| se hlsearch" +/"$1" - ; } -# manzsh() { /usr/bin/man zshall | most +/"$1" ; } -# manzsh() { man zshall | $MYLESS -p $1 ; } + + # fast manual access + if type -p qma &>/dev/null ; then + manzsh() { qma zshall "$1" } + else + manzsh() { /usr/bin/man zshall | vim -c "se ft=man| se hlsearch" +/"$1" - ; } + # manzsh() { /usr/bin/man zshall | most +/"$1" ; } + # manzsh() { man zshall | $MYLESS -p $1 ; } + fi # use "dchange " to view Debian's changelog of the package: dchange() { @@ -927,7 +933,7 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." } alias help-zshglob=H-Glob - type -p fma &>/dev/null && alias ?='fma zshall' + type -p qma &>/dev/null && alias ?='qma zshall' # grep for running process, like: 'any vim' any() { -- 2.1.4