]> git.donarmstrong.com Git - zsh.git/commitdiff
chdir back to the previous dir
authormartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 12:08:55 +0000 (13:08 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 12:08:55 +0000 (13:08 +0100)
.zsh/zshrc/90_cleanfiles

index 5e333d79163807e66fe51f5d12b5d8061dc905d1..75a5a496221d4de8aca4510b39a8ce55e60bd859 100644 (file)
@@ -10,6 +10,7 @@
 
 typeset -la rmfiles
 
+_OLDPWD="$PWD"
 cd ~
 
 rmfiles+=plugin131.trace
@@ -42,4 +43,7 @@ fi
 
 unset _rmfiles
 
+cd $_OLDPWD
+unset _OLDPWD
+
 # vim:ft=zsh