From 115104150f94246dc80d32b6eb134edf9351073f Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Sat, 3 Feb 2018 03:03:25 +0200 Subject: [PATCH] Fix scratch dir creation --- modules/new-scratch.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/new-scratch.zsh b/modules/new-scratch.zsh index d12d0d3..143491d 100644 --- a/modules/new-scratch.zsh +++ b/modules/new-scratch.zsh @@ -6,9 +6,9 @@ function new-scratch { local SCRATCH="${HOME}/scratch" local NEW_SCRATCH="${HOME}/tmp/scratch_$(date "+%s")" - __zspr_mkdir "${NEW_SCRATCH}" + mkdir -p "${NEW_SCRATCH}" ln -nfs "${NEW_SCRATCH}" "${SCRATCH}" - pushd "${SCRATCH}" > /dev/null + pushd "${SCRATCH}/" >/dev/null printf "New scratch dir ready for grinding ;>\n\n" }