From 2be76ed436fada8dffc368a0544575eb69098431 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Fri, 20 May 2016 13:15:14 +0100 Subject: [PATCH] Fix missing slashes in short dir. --- .profile.d/ps1.bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.7.4