aboutsummaryrefslogtreecommitdiffstats
path: root/basta.sh
diff options
context:
space:
mode:
Diffstat (limited to 'basta.sh')
-rw-r--r--basta.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/basta.sh b/basta.sh
index 045dcc9..804a2cf 100644
--- a/basta.sh
+++ b/basta.sh
@@ -83,10 +83,10 @@ basta.update_status()
local status="$esc[7m$status_date$esc[m $HOSTNAME $dots$pwd"
local status_len=$((${#status} - ${#status_esc}))
[ $status_len -le $COLUMNS ] && break
+ [ "${pwd#/*/}" == "$pwd" ] && break
pwd=${pwd#/}
pwd=/${pwd#*/}
dots='...'
- [ "${pwd#/*/}" == "$pwd" ] && break
done
status_len=$((${#status} - ${#status_esc}))