X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/2dfbee08389e20588a648f1f6ab18c0d9e04a1b9..45e43e1fd12c19728d53af61feadb1ab9e8d713f:/.zsh/zshrc/80_inplacemkdir diff --git a/.zsh/zshrc/80_inplacemkdir b/.zsh/zshrc/80_inplacemkdir index 095200f..91acd91 100644 --- a/.zsh/zshrc/80_inplacemkdir +++ b/.zsh/zshrc/80_inplacemkdir @@ -15,9 +15,10 @@ _inplaceMkDirs() { bufwords=(${(z)LBUFFER}) iword=${#bufwords} bufwords=(${(z)BUFFER}) - PATHTOMKDIR="$bufwords[iword]" + PATHTOMKDIR="${(Q)bufwords[iword]}" fi [[ -z "${PATHTOMKDIR}" ]] && return 1 + PATHTOMKDIR=${~PATHTOMKDIR} if [[ -e "${PATHTOMKDIR}" ]]; then zle -M " path already exists, doing nothing" else