cd_cat
This commit is contained in:
parent
a8be6fdf64
commit
17d22283f8
1 changed files with 5 additions and 4 deletions
9
cd.sh
9
cd.sh
|
@ -597,10 +597,11 @@ ${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD}"
|
||||||
# functions
|
# functions
|
||||||
|
|
||||||
cd_cat () {
|
cd_cat () {
|
||||||
if [ -f "${1}" ] ; then
|
cd_cat__file="${1}"
|
||||||
cd_open "${1}"
|
if [ "${cd_cat__file}" ] ; then
|
||||||
cat "${1}" || exit
|
cd_open "${cd_cat__file}"
|
||||||
cd_shut "${1}"
|
cat "${cd_cat__file}" || exit
|
||||||
|
cd_shut "${cd_cat__file}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue