From d8682854845bd5eef71d52de79b5e6a73343186d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 4 Jun 2024 20:23:34 +0200 Subject: [PATCH] horizontal --- cd.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cd.sh b/cd.sh index ab75c04..e7fd0b3 100644 --- a/cd.sh +++ b/cd.sh @@ -576,7 +576,7 @@ local path cd_write "${CD_PYTHON_PACKAGES}/env.py" "\ $(cd_echo CD_OS_ID CD_OS_VERSION) -$(cd_echo CD_OPEN CD_SHUT CD_SPLIT) +$(cd_echo CD_HORIZONTAL CD_OPEN CD_SHUT CD_SPLIT) " # cd_split @@ -702,9 +702,9 @@ cd_split () { cd_step () { CD_STEP=$((CD_STEP+1)) echo -n "\ -${CD_BOX_DOWN}${CD_BOX_HORIZONTAL} +${CD_BOX_DOWN}${CD_HORIZONTAL} ${CD_BOX_VERTICAL} ${CD_STEP} ${@} -${CD_BOX_UP}${CD_BOX_HORIZONTAL} +${CD_BOX_UP}${CD_HORIZONTAL} " } @@ -722,7 +722,7 @@ local text="${2}" # constants CD_BOX_DOWN="╭" -CD_BOX_HORIZONTAL="─╌╌┄┄┈┈" +CD_BOX_HORIZONTAL="─" CD_BOX_LEFT="╴" CD_BOX_RIGHT="╶" CD_BOX_UP="╰" @@ -744,9 +744,10 @@ CD_PM_APT="apt" CD_PM_DNF="dnf" CD_PM_PACMAN="pacman" +CD_HORIZONTAL="${CD_BOX_HORIZONTAL}╌╌┄┄┈┈" CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}" CD_SHUT="${CD_BOX_UP}${CD_BOX_LEFT}" -CD_SPLIT="${CD_BOX_RIGHT}${CD_BOX_HORIZONTAL}" +CD_SPLIT="${CD_BOX_RIGHT}${CD_HORIZONTAL}" # run cd_main "${@}"