Commit b15918d4 authored by Danyil Bohdan's avatar Danyil Bohdan
Browse files

"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.
parent 2e3731c5
......@@ -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
')
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment