Zsh updates
authorPierre Habouzit <madcoder@debian.org>
Mon, 28 Dec 2009 18:26:28 +0000 (19:26 +0100)
committerPierre Habouzit <madcoder@debian.org>
Mon, 28 Dec 2009 18:26:28 +0000 (19:26 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
config/zsh/20_environment
config/zsh/50_aliases

index 65e3a64..1d96c55 100644 (file)
@@ -18,5 +18,5 @@ export RLWRAP_HOME="$HOME/.cache/rlwrap/"
 export GTK_IM_MODULE=xim
 
 export LC_MESSAGES=C
-export LC_ALL=
-unset VERBOSE
+unset  LC_ALL
+unset  VERBOSE
index e498b91..e2ee5c2 100644 (file)
@@ -69,3 +69,11 @@ vman() {
         vim -m -n --noplugin -c "set ft=man" -c "noremap q :q<cr>" -c "Man $@"
     fi
 }
+
+gdbpid() {
+    if test "$1" = $(printf "%d" "$1"); then
+        gdb --pid="$1"
+    else
+        gdb --pid=$(pidof "$1")
+    fi
+}