@@ -1,5 +1,12 @@
use path
+# nix-shell overwrites TMPDIR so set it back to the original value
+if (and (has-env ORIG_TMPDIR) (has-env IN_NIX_SHELL)) {
+ set-env TMPDIR $E:ORIG_TMPDIR
+} elif (has-env TMPDIR) {
+ set-env ORIG_TMPDIR $E:TMPDIR
+}
+
edit:add-var nix~ {|@a|
var is-shell = (and ^
(> (count $a) 0) ^