# HG changeset patch # User Mikael Berthe # Date 1557321519 -7200 # Node ID 7b48c4ff8d361d4e9f1a235d6c4929a5ba58a669 # Parent 2431e6a9344a78f1c29ac96919e4478ecd5aa29e Update mkcd diff -r 2431e6a9344a -r 7b48c4ff8d36 zshrc.d/30-functions.zrc --- a/zshrc.d/30-functions.zrc Sat Apr 27 22:54:09 2019 +0200 +++ b/zshrc.d/30-functions.zrc Wed May 08 15:18:39 2019 +0200 @@ -44,8 +44,8 @@ function mkcd() { [[ -z $1 ]] && printf 'usage: mkcd NEW-DIRECTORY\n' && return 1 [[ -d $1 ]] && printf 'mkcd: Directory %s already exists; cd-ing\n' $1 - command mkdir -p -- $1 - builtin cd -- $1 + command mkdir -p -- "$1" + builtin cd -- "$1" } # genpass()