From 3d64af5378807bd49346ff933ebf49645eb69492 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 14:19:59 +0200 Subject: [PATCH] _/frame --- spcd/bootstrap.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index d78577b..f55eae8 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -163,15 +163,15 @@ SPCD_ERROR_OS=2 # │ internal │ frame │ # ╰──────────┴───────╯ -SPCD_FRAME_TOP="╭╴" -SPCD_FRAME_BOTTOM="╰╴" +_SPCD_FRAME_TOP="╭╴" +_SPCD_FRAME_BOTTOM="╰╴" -spcd_frame_open() { - echo "${SPCD_FRAME_TOP}${1}" +_spcd_frame_open() { + echo "${_SPCD_FRAME_TOP}${1}" } -spcd_frame_shut() { - echo "${SPCD_FRAME_BOTTOM}${1}" +_spcd_frame_shut() { + echo "${_SPCD_FRAME_BOTTOM}${1}" } # ╭──────────┬────╮ @@ -181,9 +181,9 @@ spcd_frame_shut() { spcd_os_cat() { spcd_cat__file="${1}" if [ -n "${spcd_cat__file}" ]; then - spcd_frame_open "${spcd_cat__file}" + _spcd_frame_open "${spcd_cat__file}" cat "${spcd_cat__file}" - spcd_frame_shut "${spcd_cat__file}" + _spcd_frame_shut "${spcd_cat__file}" fi } @@ -277,9 +277,9 @@ spcd_os_grep() { spcd_os_ls() { spcd_os_ls__path="${1}" if [ -n "${spcd_os_ls__path}" ]; then - spcd_frame_open "${spcd_os_ls__path}" + _spcd_frame_open "${spcd_os_ls__path}" ls -a -l "${spcd_os_ls__path}" - spcd_frame_shut "${spcd_os_ls__path}" + _spcd_frame_shut "${spcd_os_ls__path}" fi }