diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-21 12:43:13 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-21 12:43:13 +0100 |
commit | f65bd5ae49da40eedd4929f17e0dced77a774af9 (patch) | |
tree | 985302ecb93e8d58ddf921ae0dda0bcaee6f91a7 /accounts | |
parent | 3f42f921dd61ab4b846cfaf7380806a74643db52 (diff) | |
download | nixos-f65bd5ae49da40eedd4929f17e0dced77a774af9.tar nixos-f65bd5ae49da40eedd4929f17e0dced77a774af9.tar.gz nixos-f65bd5ae49da40eedd4929f17e0dced77a774af9.tar.bz2 nixos-f65bd5ae49da40eedd4929f17e0dced77a774af9.tar.xz nixos-f65bd5ae49da40eedd4929f17e0dced77a774af9.zip |
...
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/gkleen@sif/zshrc | 10 |
1 files changed, 5 insertions, 5 deletions
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() { | |||
316 | 316 | ||
317 | 317 | ||
318 | if [[ -z ${nixShell} ]]; then | 318 | if [[ -z ${nixShell} ]]; then |
319 | exec -- zsh | 319 | zsh |
320 | else | 320 | else |
321 | exec -- nix-shell ${nixShell} --run zsh | 321 | nix-shell ${nixShell} --run zsh |
322 | fi | 322 | fi |
323 | else | 323 | else |
324 | if [[ -z ${nixShell} ]]; then | 324 | if [[ -z ${nixShell} ]]; then |
325 | exec -- ${@} | 325 | ${@} |
326 | else | 326 | else |
327 | exec -- nix-shell ${nixShell} --run "${@}" | 327 | nix-shell ${nixShell} --run "${@}" |
328 | fi | 328 | fi |
329 | fi | 329 | fi |
330 | ) | 330 | ) |
@@ -366,7 +366,7 @@ tmpdir() { | |||
366 | 366 | ||
367 | local dir=$(mktemp -ud --tmpdir${tmpdir} ${0}.XXXXXXXXXX || return $?) | 367 | local dir=$(mktemp -ud --tmpdir${tmpdir} ${0}.XXXXXXXXXX || return $?) |
368 | 368 | ||
369 | dir -d ${dir} ${@} | 369 | ( dir -d ${dir} ${@} ) |
370 | ) | 370 | ) |
371 | } | 371 | } |
372 | 372 | ||