X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/74a53e2864888016fbe0dfc7443801db01bd1d04..94526c3fc940d29e2ff9dce5fc1f7b024f78fcc6:/dot/shrc diff --git a/dot/shrc b/dot/shrc index 90710df..114cc23 100644 --- a/dot/shrc +++ b/dot/shrc @@ -16,7 +16,7 @@ __mdw_set_prompt_hacks () { ;; esac host=$(hostname) - dir="" + dir=' $(d=$(pwd); case "$d" in ("$HOME") d="~" ;; ("$HOME"/*) d="~${d#$HOME}" ;; esac; echo $d)' } __mdw_set_prompt_pieces