X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/0dc5d2bd42abc8be2cb23bfec06661275a08f516..effd32b0f2e4d146b219b1727601b0b7f6593638:/nix/devshell.nix diff --git a/nix/devshell.nix b/nix/devshell.nix index fdf65e9..110a7c4 100644 --- a/nix/devshell.nix +++ b/nix/devshell.nix @@ -22,5 +22,8 @@ pkgs.mkShell { shellHook = '' git config core.hooksPath .githooks 2>/dev/null || true + root=$(git rev-parse --show-toplevel 2>/dev/null || pwd) + export ONECHAT_DIR="''${ONECHAT_DIR:-$root/.devenv/onechat}" + unset root ''; }