浏览代码

[wd] Fix update of wd plugin to v0.4.6 (#6407)

Markus Færevaag 7 年之前
父节点
当前提交
dcb8101fde
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/wd/_wd.sh

+ 1 - 1
plugins/wd/_wd.sh

@@ -24,7 +24,7 @@ function _wd() {
     target_path=${arr[2]}
     target_path=${arr[2]}
 
 
     # replace ~ from path to fix completion (#17)
     # replace ~ from path to fix completion (#17)
-    target_path=${path/#\~/$HOME}
+    target_path=${target_path/#\~/$HOME}
 
 
     points[$name]=$target_path
     points[$name]=$target_path
   done < $CONFIG
   done < $CONFIG