diff --git a/spcd/main.sh b/spcd/main.sh index 8bad79b..6d53f2f 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -172,6 +172,14 @@ spcd_frame_shut() { echo "${SPCD_FRAME_UP_AND_RIGHT}${1}" } +# ╭──────────┬──────╮ +# │ internal │ rule │ +# ╰──────────┴──────╯ + +SPCD_RULE_HORIZONTAL="─" +SPCD_RULE_LEFT="╴" +SPCD_RULE_RIGHT="╶" + # ╭──────────┬──────╮ # │ internal │ step │ # ╰──────────┴──────╯ @@ -262,6 +270,14 @@ spcd_os_rm() { fi } +# ╭───────────┬───────╮ +# │ functions │ split │ +# ╰───────────┴───────╯ + +spcd_split() { + echo "${SPCD_RULE_RIGHT}${SPCD_RULE_HORIZONTAL}${SPCD_RULE_LEFT}" +} + # ╭───────────┬──────╮ # │ functions │ step │ # ╰───────────┴──────╯ @@ -1193,10 +1209,6 @@ spcd_sed() { fi } -spcd_split() { - echo "${SPCD_SPLT}" -} - spcd_write() { spcd_write__file="${1}" spcd_write__text="${2}" @@ -1210,15 +1222,9 @@ spcd_write() { # constants -SPCD_BOX_RIGHT="╶" - SPCD_PYTHON_VENV="/opt/venv" SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin" -SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈" - -SPCD_SPLT="${SPCD_BOX_RIGHT}${SPCD_HORIZONTAL}" - # ╭──────╮ # │ main │ # ╰──────╯