_/frame
This commit is contained in:
parent
0dd882da0d
commit
3d64af5378
1 changed files with 10 additions and 10 deletions
|
@ -163,15 +163,15 @@ SPCD_ERROR_OS=2
|
||||||
# │ internal │ frame │
|
# │ internal │ frame │
|
||||||
# ╰──────────┴───────╯
|
# ╰──────────┴───────╯
|
||||||
|
|
||||||
SPCD_FRAME_TOP="╭╴"
|
_SPCD_FRAME_TOP="╭╴"
|
||||||
SPCD_FRAME_BOTTOM="╰╴"
|
_SPCD_FRAME_BOTTOM="╰╴"
|
||||||
|
|
||||||
spcd_frame_open() {
|
_spcd_frame_open() {
|
||||||
echo "${SPCD_FRAME_TOP}${1}"
|
echo "${_SPCD_FRAME_TOP}${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_frame_shut() {
|
_spcd_frame_shut() {
|
||||||
echo "${SPCD_FRAME_BOTTOM}${1}"
|
echo "${_SPCD_FRAME_BOTTOM}${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭──────────┬────╮
|
# ╭──────────┬────╮
|
||||||
|
@ -181,9 +181,9 @@ spcd_frame_shut() {
|
||||||
spcd_os_cat() {
|
spcd_os_cat() {
|
||||||
spcd_cat__file="${1}"
|
spcd_cat__file="${1}"
|
||||||
if [ -n "${spcd_cat__file}" ]; then
|
if [ -n "${spcd_cat__file}" ]; then
|
||||||
spcd_frame_open "${spcd_cat__file}"
|
_spcd_frame_open "${spcd_cat__file}"
|
||||||
cat "${spcd_cat__file}"
|
cat "${spcd_cat__file}"
|
||||||
spcd_frame_shut "${spcd_cat__file}"
|
_spcd_frame_shut "${spcd_cat__file}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,9 +277,9 @@ spcd_os_grep() {
|
||||||
spcd_os_ls() {
|
spcd_os_ls() {
|
||||||
spcd_os_ls__path="${1}"
|
spcd_os_ls__path="${1}"
|
||||||
if [ -n "${spcd_os_ls__path}" ]; then
|
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}"
|
ls -a -l "${spcd_os_ls__path}"
|
||||||
spcd_frame_shut "${spcd_os_ls__path}"
|
_spcd_frame_shut "${spcd_os_ls__path}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue