b15918d414f255f8d2b36c99a338f930d7431b21
Author Danyil Bohdan <danyil.bohdan@gmail.com> Committer Danyil Bohdan <danyil.bohdan@gmail.com> Date 2015-12-14 11:38 UTC
Message "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.
Diff 1 diff --git a/themes/fishy.zsh-theme b/themes/fishy.zsh-theme
2 index 5937592dc7ace5d2ec9d0650a819a73f752e8afa..83bd455b576441b744b7e493c8b27fc5f970c1f0 100644
3 --- a/themes/fishy.zsh-theme
4 +++ b/themes/fishy.zsh-theme
5 @@ -5,7 +5,7 @@ _fishy_collapsed_wd() {
6 BEGIN {
7 binmode STDIN, ":encoding(UTF-8)";
8 binmode STDOUT, ":encoding(UTF-8)";
9 - }; s|^$HOME|~|g; s|/([^/.])[^/]*(?=/)|/$1|g; s|/\.([^/])[^/]*(?=/)|/.$1|g;
10 + }; s|^$ENV{HOME}|~|g; s|/([^/.])[^/]*(?=/)|/$1|g; s|/\.([^/])[^/]*(?=/)|/.$1|g
11 ')
12 }
13