summaryrefslogtreecommitdiff
path: root/etc/functions/mkcd
blob: 553c90e621669c9a53b4e231a1692dd379b687c7 (plain)
1
2
3
4
5
6
7
## vim:ft=zsh
typeset -i ls=0
[[ -d $1 ]] && ls=1
mkdir -p $1
cd $1
((ls)) && ls
true