* /etc/zsh/zshrc: fma has been renamed into qma, adjust references 0.2.7
authorMichael Prokop <mika@grml.org>
Sat, 2 Dec 2006 17:50:04 +0000 (18:50 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 2 Dec 2006 17:50:04 +0000 (18:50 +0100)
    therefore and use qma for manzsh too. (This fixes part 2/2 of
    issue19)

debian/changelog
etc/zsh/zshrc

index 84b9dfa..28c35b4 100644 (file)
@@ -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 <mika@grml.org>  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.
index 89c9ed8..75013ea 100644 (file)
@@ -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 <package-name>" 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() {