浏览代码

last-working-dir working with spaces in dirnames

Christian Hoener zu Siederdissen 10 年之前
父节点
当前提交
83295ec9bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.
 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