set max length to key

This commit is contained in:
q
2024-10-14 12:03:54 +03:00
parent e89408bbdb
commit 569ee34f67

View File

@@ -84,6 +84,7 @@ function cd_history () {
fi fi
\cd "$1" \cd "$1"
b=$( basename "$PWD" ) b=$( basename "$PWD" )
b=${b:0:42}
if [[ -n "$_QCD_DB" ]]; then if [[ -n "$_QCD_DB" ]]; then
local cd_time local cd_time
printf -v cd_time "%(%s)T000" -1 printf -v cd_time "%(%s)T000" -1