diff options
author | Danyil Bohdan <danyil.bohdan@gmail.com> | 2015-12-14 13:35:44 +0200 |
---|---|---|
committer | Danyil Bohdan <danyil.bohdan@gmail.com> | 2015-12-14 13:38:28 +0200 |
commit | b15918d414f255f8d2b36c99a338f930d7431b21 (patch) | |
tree | f4aebbf5d9b6b123df639cf8f5aa3d8caa1255c8 /themes/fishy.zsh-theme | |
parent | 2e3731c5b1f0070a076fa84e9e2c35975a962ee5 (diff) | |
download | zsh-b15918d414f255f8d2b36c99a338f930d7431b21.tar.gz zsh-b15918d414f255f8d2b36c99a338f930d7431b21.tar.bz2 zsh-b15918d414f255f8d2b36c99a338f930d7431b21.zip |
"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.
Diffstat (limited to 'themes/fishy.zsh-theme')
-rw-r--r-- | themes/fishy.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/fishy.zsh-theme b/themes/fishy.zsh-theme index 5937592dc..83bd455b5 100644 --- a/themes/fishy.zsh-theme +++ b/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 ') } |