X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/2dfbee08389e20588a648f1f6ab18c0d9e04a1b9..414a3ee427b617a3749724fef7dea496780edf4e:/.zsh/zshrc/80_inplacemkdir?ds=inline 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