From 85953236c2553d45a764efabd71f58528f40baf9 Mon Sep 17 00:00:00 2001 From: Kate Date: Fri, 23 May 2025 14:03:14 +0200 Subject: [PATCH] design: hopefully work around CD wonk --- xonsh/localhost.xsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xonsh/localhost.xsh b/xonsh/localhost.xsh index 7c41710..2a54a8c 100644 --- a/xonsh/localhost.xsh +++ b/xonsh/localhost.xsh @@ -28,3 +28,9 @@ $XDG_DATA_DIRS = [ "/usr/local/share", $HOME + "/.nix-profile/share" ] + +# Make sure cd isn't run as a subprocess. +# Gods help us that this is necessary. +import xonsh.tools +aliases['cd'] = xonsh.tools.unthreadable(xonsh.dirstack.cd) +