cd_ls
This commit is contained in:
parent
953fb81032
commit
ff58a3b397
1 changed files with 5 additions and 4 deletions
9
cd.sh
9
cd.sh
|
@ -649,10 +649,11 @@ local command="${1}"
|
|||
}
|
||||
|
||||
cd_ls () {
|
||||
if [ -d "${1}" ] ; then
|
||||
cd_open "${1}"
|
||||
ls -a -l "${1}" || exit
|
||||
cd_shut "${1}"
|
||||
cd_ls__path="${1}"
|
||||
if [ "${cd_ls__path}" ] ; then
|
||||
cd_open "${cd_ls__path}"
|
||||
ls -a -l "${cd_ls__path}" || exit
|
||||
cd_shut "${cd_ls__path}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue