/etc/skel/.zshrc: added alias mq 0.2.43
authorMichael Prokop <mika@grml.org>
Fri, 13 Apr 2007 16:01:18 +0000 (18:01 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 13 Apr 2007 16:01:18 +0000 (18:01 +0200)
debian/changelog
etc/skel/.zshrc
etc/zsh/zshrc

index 696460b..0cb4e57 100644 (file)
@@ -4,6 +4,8 @@ grml-etc-core (0.2.43) unstable; urgency=low
     - applied patch by ft for generic file completion (thanks!)
     - added function sll (list symlinks in more details), thanks
       for the code base, Manuel Fuhr and ft!
+  * /etc/skel/.zshrc: added alias mq (execute commands on the
+    versioned patch-queue from the current repos) [thanks, gebi]
 
  -- Michael Prokop <mika@grml.org>  Fri, 13 Apr 2007 17:35:15 +0200
 
index 28b878b..d772041 100644 (file)
@@ -3,7 +3,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Son Mär 11 12:44:51 CET 2007 [mika]
+# Latest change: Fre Apr 13 18:00:42 CEST 2007 [mika]
 ################################################################################
 
 # source ~/.zshrc.global {{{
   # build debian package
     alias hbp='hg-buildpackage'
 
+  # execute commands on the versioned patch-queue from the current repos
+    alias mq='hg -R $(readlink -f $(hg root)/.hg/patches)'
+
   # diffstat for specific version of a mercurial repository
   #   hgstat      => display diffstat between last revision and tip
   #   hgstat 1234 => display diffstat between revision 1234 and tip
index ee7688f..a4adfdd 100644 (file)
@@ -976,7 +976,7 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"."
 
   # list symlinks in detail (more detailed version of 'readlink -f' and 'whence -s')
   sll() {
-    [ -z "$1" ] && printf 'Usage: %s <file>\n' "$0" && return 1
+    [ -z "$1" ] && printf 'Usage: %s <file(s)>\n' "$0" && return 1
     for i in "$@" ; do
       file=$i
       while [ -h "$file" ] ; do