From f65bd5ae49da40eedd4929f17e0dced77a774af9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 21 Mar 2023 12:43:13 +0100 Subject: ... --- accounts/gkleen@sif/zshrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'accounts') diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc index 569c9372..15165ca8 100644 --- a/accounts/gkleen@sif/zshrc +++ b/accounts/gkleen@sif/zshrc @@ -316,15 +316,15 @@ dir() { if [[ -z ${nixShell} ]]; then - exec -- zsh + zsh else - exec -- nix-shell ${nixShell} --run zsh + nix-shell ${nixShell} --run zsh fi else if [[ -z ${nixShell} ]]; then - exec -- ${@} + ${@} else - exec -- nix-shell ${nixShell} --run "${@}" + nix-shell ${nixShell} --run "${@}" fi fi ) @@ -366,7 +366,7 @@ tmpdir() { local dir=$(mktemp -ud --tmpdir${tmpdir} ${0}.XXXXXXXXXX || return $?) - dir -d ${dir} ${@} + ( dir -d ${dir} ${@} ) ) } -- cgit v1.2.3