X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=55715d82de50dabd5462958cde18b48be77d9f71;hb=140a5435230cc9e9d86b21d09f9110d9d1bf6873;hp=89c9ed81ffc59a165f70ad77f86178615157cff2;hpb=19166a4c4d50b58cbd7688f23f0463f2a860236c;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 89c9ed8..55715d8 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -680,8 +680,6 @@ grmlcomp() { zstyle ':completion:*:history-words' menu yes # activate menu zstyle ':completion:*:history-words' remove-all-dups yes # ignore duplicate entries zstyle ':completion:*:history-words' stop yes # - zstyle ':completion:*:*:linda:*' file-patterns '*.deb' # complete debian packages for command 'linda' - zstyle ':completion:*:*:lintian:*' file-patterns '*.deb' # complete debian packages for command 'lintian' zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' # match uppercase from lowercase zstyle ':completion:*:matches' group 'yes' # separate matches into groups zstyle ':completion:*' group-name '' @@ -833,9 +831,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 +931,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() {