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 () {
|
cd_mkdir () {
|
||||||
if [ "${1}" ] ; then
|
cd_mkdir__path="${1}"
|
||||||
echo "→ ${1}"
|
if [ "${cd_mkdir__path}" ] ; then
|
||||||
mkdir --parents "${1}" || exit
|
echo "→ ${cd_mkdir__path}"
|
||||||
|
mkdir --parents "${cd_mkdir__path}" || exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue