浏览代码

"fishy" theme: Fix "~" use in prompt

Actually replace the value of the environment variable $HOME with
"~" instead of appending the tilde in front of the prompt.
Danyil Bohdan 8 年之前
父节点
当前提交
b15918d414
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      themes/fishy.zsh-theme

+ 1 - 1
themes/fishy.zsh-theme

@@ -5,7 +5,7 @@ _fishy_collapsed_wd() {
    BEGIN {
       binmode STDIN,  ":encoding(UTF-8)";
       binmode STDOUT, ":encoding(UTF-8)";
-   }; s|^$HOME|~|g; s|/([^/.])[^/]*(?=/)|/$1|g; s|/\.([^/])[^/]*(?=/)|/.$1|g;
+   }; s|^$ENV{HOME}|~|g; s|/([^/.])[^/]*(?=/)|/$1|g; s|/\.([^/])[^/]*(?=/)|/.$1|g
 ')
 }