From 8aa4af617f29454845eeef2b0c217d58aebda119 Mon Sep 17 00:00:00 2001 From: Abhishek Keshri Date: Mon, 4 Nov 2024 00:00:57 +0530 Subject: [PATCH] feat: update cwd truncate algo --- scripts/cwd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cwd.sh b/scripts/cwd.sh index bc39e19..741f5a1 100755 --- a/scripts/cwd.sh +++ b/scripts/cwd.sh @@ -24,7 +24,7 @@ truncate_path() { for ((i = 0; i < ${#path_array[@]} - 1; i++)); do if [ ${#path_array[i]} -gt 1 ]; then - truncated_path+="${path_array[i]:0:1}/" + truncated_path+="${path_array[i]:0:2}/" else truncated_path+="${path_array[i]}/" fi