From 79310611bd71b74f1d4c0875f2b63ecafd15f4a0 Mon Sep 17 00:00:00 2001 From: sils Date: Sun, 18 Jun 2023 12:30:12 +0200 Subject: Feat(s/environment): Add CDPATH Variable CDPATH makes cd-ing into directory really smooth --- sys/environment/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/environment/default.nix b/sys/environment/default.nix index 8f58641..ddd7fe5 100644 --- a/sys/environment/default.nix +++ b/sys/environment/default.nix @@ -1,5 +1,5 @@ {...}: { - environment.sessionVariables = rec { + environment.sessionVariables = { XDG_CACHE_HOME = "\${HOME}/.cache"; XDG_CONFIG_HOME = "\${HOME}/.config"; XDG_BIN_HOME = "\${HOME}/.local/bin"; @@ -17,6 +17,8 @@ EDITOR = "nvim"; GOPATH = "\${HOME}/.local/share/go"; XCOMPOSECACHE = "\${HOME}/.cache/X11/xcompose"; + CDPATH = ".:\${HOME}:\${HOME}/repos/:\${HOME}/srv"; + #PYTHONSTARTUP="/etc/python/pythonrc"; PATH = [ -- cgit 1.4.1