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 () {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue