mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
feat: update cwd truncate algo
This commit is contained in:
parent
8ba2122239
commit
8aa4af617f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue