diff options
Diffstat (limited to 'etc/functions')
-rwxr-xr-x | etc/functions/mkcd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/functions/mkcd b/etc/functions/mkcd new file mode 100755 index 0000000..553c90e --- /dev/null +++ b/etc/functions/mkcd @@ -0,0 +1,7 @@ +## vim:ft=zsh +typeset -i ls=0 +[[ -d $1 ]] && ls=1 +mkdir -p $1 +cd $1 +((ls)) && ls +true |