zshrc: fix inplaceMkDirs
authorBernhard Tittelbach <bernhard@tittelbach.org>
Tue, 3 Apr 2012 06:21:04 +0000 (08:21 +0200)
committerBernhard Tittelbach <bernhard@tittelbach.org>
Tue, 3 Apr 2012 06:21:04 +0000 (08:21 +0200)
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