]> git.donarmstrong.com Git - zsh.git/commitdiff
purer implementation of ldir
authormartin f. krafft <madduck@madduck.net>
Wed, 7 May 2008 20:15:57 +0000 (21:15 +0100)
committermartin f. krafft <madduck@madduck.net>
Thu, 8 May 2008 11:01:25 +0000 (12:01 +0100)
.zsh/zshrc/99_TODO

index 83a84122264f7a91bde3fc8a9066f5e22969a315..63cf6c46d887fb8b8e955626832964cd683ed8a0 100644 (file)
@@ -9,7 +9,7 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-ldir() { eval $1="$PWD" ; : ~$1 }
+ldir() { eval hash -d $1="$PWD"; cd .; }
 
 alias Q='exec zsh'
 alias ozsh='ZDOTDIR=$HOME/.etc/zsh exec zsh'