Browse Source

last-working-dir working with spaces in dirnames

Christian Hoener zu Siederdissen 10 years ago
parent
commit
83295ec9bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/last-working-dir/last-working-dir.plugin.zsh

+ 1 - 1
plugins/last-working-dir/last-working-dir.plugin.zsh

@@ -15,7 +15,7 @@ function chpwd() {
 
 
 # Changes directory to the last working directory.
 # Changes directory to the last working directory.
 function lwd() {
 function lwd() {
-	[[ ! -r "$cache_file" ]] || cd `cat "$cache_file"`
+	[[ ! -r "$cache_file" ]] || cd "`cat "$cache_file"`"
 }
 }
 
 
 # Automatically jump to last working directory unless this isn't the first time
 # Automatically jump to last working directory unless this isn't the first time