]> git.donarmstrong.com Git - zsh.git/commitdiff
make it actually work
authormartin f. krafft <madduck@madduck.net>
Mon, 12 May 2008 15:49:35 +0000 (16:49 +0100)
committermartin f. krafft <madduck@madduck.net>
Mon, 12 May 2008 15:49:35 +0000 (16:49 +0100)
.zsh/zshrc/31_cd_bugfix [deleted file]
.zsh/zshrc/31_cd_bugfix1 [new file with mode: 0644]
.zsh/zshrc/31_cd_bugfix2 [new file with mode: 0644]

diff --git a/.zsh/zshrc/31_cd_bugfix b/.zsh/zshrc/31_cd_bugfix
deleted file mode 100644 (file)
index d306d25..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# fix until #480889 is fixed
-
-cd () { builtin cd $* && ll }
-rm -f $(print -P '%N').zwc
diff --git a/.zsh/zshrc/31_cd_bugfix1 b/.zsh/zshrc/31_cd_bugfix1
new file mode 100644 (file)
index 0000000..e6a6e05
--- /dev/null
@@ -0,0 +1,4 @@
+# fix until #480889 is fixed
+
+# remove the compiled file before it gets sourced
+rm -f $ZDOTDIR/zshrc/31_cd_bugfix2.zwc
diff --git a/.zsh/zshrc/31_cd_bugfix2 b/.zsh/zshrc/31_cd_bugfix2
new file mode 100644 (file)
index 0000000..f551907
--- /dev/null
@@ -0,0 +1,3 @@
+# fix until #480889 is fixed
+
+cd () { builtin cd $* && ll }