# 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: Mon Feb 26 18:52:32 CET 2007 [mika]
+# Latest change: Mit Mär 14 15:41:03 CET 2007 [mika]
################################################################################
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
zle -N insert-unicode-char
bindkey '^Xi' insert-unicode-char
+# just type 'cd ...' to get 'cd ../..'
+ rationalise-dot() {
+ if [[ $LBUFFER = *.. ]]; then
+ LBUFFER+=/..
+ else
+ LBUFFER+=.
+ fi
+ }
+ zle -N rationalise-dot
+ bindkey . rationalise-dot
+
# bindkey '\eq' push-line-or-edit
# }}}