feat: update cwd truncate algo

This commit is contained in:
Abhishek Keshri 2024-11-04 00:00:57 +05:30
parent 8ba2122239
commit 8aa4af617f
No known key found for this signature in database

View file

@ -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