This commit is contained in:
Marc Beninca 2024-08-26 14:19:59 +02:00
parent 0dd882da0d
commit 3d64af5378
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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
}