This commit is contained in:
Marc Beninca 2024-06-08 12:42:10 +02:00
parent 953fb81032
commit ff58a3b397
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
cd.sh
View file

@ -649,10 +649,11 @@ local command="${1}"
} }
cd_ls () { cd_ls () {
if [ -d "${1}" ] ; then cd_ls__path="${1}"
cd_open "${1}" if [ "${cd_ls__path}" ] ; then
ls -a -l "${1}" || exit cd_open "${cd_ls__path}"
cd_shut "${1}" ls -a -l "${cd_ls__path}" || exit
cd_shut "${cd_ls__path}"
fi fi
} }