zshrc: fix inplaceMkDirs
[grml-etc-core.git] / etc / zsh / zshrc
index a33c6df..305e0ec 100644 (file)
@@ -2393,6 +2393,7 @@ inplaceMkDirs() {
         PATHTOMKDIR="${(Q)bufwords[iword]}"
     fi
     [[ -z "${PATHTOMKDIR}" ]] && return 1
+    PATHTOMKDIR=${~PATHTOMKDIR}
     if [[ -e "${PATHTOMKDIR}" ]]; then
         zle -M " path already exists, doing nothing"
     else