提交 b15918d4 编写于 作者: D Danyil Bohdan

"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.
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册