X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;ds=sidebyside;f=.profile.d%2Fps1.bashrc;h=991095bcca59aad63effe4eba9dcfef4b4e5c407;hb=730f97068308dceebb2d269070701533ec22a9c9;hp=4f249c9451b9d9b8450ab53845a1cee229b3ae93;hpb=2b1bf28a9ce5697d91e668bcb6569ef3202f1b90;p=profile.git diff --git a/.profile.d/ps1.bashrc b/.profile.d/ps1.bashrc index 4f249c9..991095b 100644 --- a/.profile.d/ps1.bashrc +++ b/.profile.d/ps1.bashrc @@ -240,7 +240,8 @@ function __ps1_short() { n=$((n+1)) done - echo "$short$dirname" + [ "${short:0:1}" = "~" ] || short="/$short" + echo "$short/$dirname" return $1 }