This commit is contained in:
Marc Beninca 2024-08-25 21:40:36 +02:00
parent 1876bb50cb
commit 9d3036c734
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -164,11 +164,11 @@ SPCD_ERROR_OS=2
SPCD_FRAME_DOWN_AND_RIGHT="╭" SPCD_FRAME_DOWN_AND_RIGHT="╭"
SPCD_FRAME_UP_AND_RIGHT="╰" SPCD_FRAME_UP_AND_RIGHT="╰"
spcd_open() { spcd_frame_open() {
echo "${SPCD_FRAME_DOWN_AND_RIGHT}${*}" echo "${SPCD_FRAME_DOWN_AND_RIGHT}${*}"
} }
spcd_shut() { spcd_frame_shut() {
echo "${SPCD_FRAME_UP_AND_RIGHT}${*}" echo "${SPCD_FRAME_UP_AND_RIGHT}${*}"
} }
@ -1104,9 +1104,9 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
spcd_cat() { spcd_cat() {
spcd_cat__file="${1}" spcd_cat__file="${1}"
if [ -n "${spcd_cat__file}" ]; then if [ -n "${spcd_cat__file}" ]; then
spcd_open "${spcd_cat__file}" spcd_frame_open "${spcd_cat__file}"
cat "${spcd_cat__file}" || exit cat "${spcd_cat__file}" || exit
spcd_shut "${spcd_cat__file}" spcd_frame_shut "${spcd_cat__file}"
fi fi
} }
@ -1130,9 +1130,9 @@ spcd_ln_python() {
spcd_ls() { spcd_ls() {
spcd_ls__path="${1}" spcd_ls__path="${1}"
if [ -n "${spcd_ls__path}" ]; then if [ -n "${spcd_ls__path}" ]; then
spcd_open "${spcd_ls__path}" spcd_frame_open "${spcd_ls__path}"
ls -a -l "${spcd_ls__path}" || exit ls -a -l "${spcd_ls__path}" || exit
spcd_shut "${spcd_ls__path}" spcd_frame_shut "${spcd_ls__path}"
fi fi
} }