diff --git a/.config/zsh/functions.zsh b/.config/zsh/functions.zsh index d76b1dc..af2fc0d 100755 --- a/.config/zsh/functions.zsh +++ b/.config/zsh/functions.zsh @@ -13,7 +13,7 @@ md () { mvln () { from=$(readlink -f $1) to="$2" - [ ! -d "$(dirname $to)" ] && mkdir "$(dirname $to)" + [ ! -d "$(dirname $to)" ] && mkdir -p "$(dirname $to)" mv $from $to ln -s $to $from }