blob: 4d62298471d6a6bbdc8874f62d3c9df2dddd03b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
## vim:ft=zsh
## create a directory, then change into it
typeset -i ls=0
typeset dir=$1
if [[ -z $dir ]] {
echo "Usage: mkcd <directory name>" > /dev/stderr
return 1
}
[[ -d $dir ]] && ls=1
mkdir -p $din
cd $dir
((ls)) && ls
true
|