From 461c798983ab0f4f79784cb1b1b2dcab96beb917 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 4 Jun 2024 18:51:15 +0200 Subject: [PATCH] box/horizontal,vertical --- cd.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cd.sh b/cd.sh index c8169cb..f67399d 100644 --- a/cd.sh +++ b/cd.sh @@ -688,16 +688,16 @@ shift cd_split () { echo -n "\ -╶${CD_SPLIT} +╶${CD_BOX_HORIZONTAL} " } cd_step () { CD_STEP=$((CD_STEP+1)) echo -n "\ -${CD_BOX_DOWN}${CD_SPLIT} -│ ${CD_STEP} ${@} -╰${CD_SPLIT} +${CD_BOX_DOWN}${CD_BOX_HORIZONTAL} +${CD_BOX_VERTICAL} ${CD_STEP} ${@} +╰${CD_BOX_HORIZONTAL} " } @@ -715,7 +715,9 @@ local text="${2}" # constants CD_BOX_DOWN="╭" +CD_BOX_HORIZONTAL="─╌╌┄┄┈┈" CD_BOX_LEFT="╴" +CD_BOX_VERTICAL="│" CD_ERROR_CI=2 CD_ERROR_OS=1 @@ -733,7 +735,5 @@ CD_PM_APT="apt" CD_PM_DNF="dnf" CD_PM_PACMAN="pacman" -CD_SPLIT="─╌╌┄┄┈┈" - # run cd_main "${@}"