cd_mkdir
This commit is contained in:
parent
571497c5cf
commit
953fb81032
1 changed files with 4 additions and 3 deletions
7
cd.sh
7
cd.sh
|
@ -657,9 +657,10 @@ cd_ls () {
|
|||
}
|
||||
|
||||
cd_mkdir () {
|
||||
if [ "${1}" ] ; then
|
||||
echo "→ ${1}"
|
||||
mkdir --parents "${1}" || exit
|
||||
cd_mkdir__path="${1}"
|
||||
if [ "${cd_mkdir__path}" ] ; then
|
||||
echo "→ ${cd_mkdir__path}"
|
||||
mkdir --parents "${cd_mkdir__path}" || exit
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue