]> git.madduck.net Git - etc/zsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add magic dotdot rationalisation
authormartin f. krafft <madduck@madduck.net>
Wed, 7 May 2008 10:10:39 +0000 (11:10 +0100)
committermartin f. krafft <madduck@madduck.net>
Wed, 7 May 2008 10:13:06 +0000 (11:13 +0100)
.zsh/zshrc/00_TODO
.zsh/zshrc/30_aliases

index 1fb9583692e376a99dc0b0e1b5d0e772fe10875f..32e197dce219596d78c13f90763e4864e12628eb 100644 (file)
@@ -34,6 +34,17 @@ REPORTTIME=5
 
 MAILCHECK=0
 
+# http://grml.org/zsh/zsh-lovers.html
+rationalise-dot() {
+  if [[ $LBUFFER = *.. ]]; then
+    LBUFFER+=/..
+  else
+    LBUFFER+=.
+  fi
+}
+zle -N rationalise-dot
+bindkey . rationalise-dot
+
 :
 
 # vim:ft=zsh
index 2a4dd0ce577cf1c25f2e4a06bfb3d7e9ee7ff0c0..39c25565226ed4766a503fd478c2d50ecf355dc8 100644 (file)
@@ -8,9 +8,6 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-alias -g ...=../..
-alias -g ....=../../..
-
 alias mv='nocorrect mv'
 alias cp='nocorrect cp'
 alias mkdir='nocorrect mkdir'