summary refs log tree commit diff stats
path: root/sys/environment/default.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-06-18 12:30:12 +0200
committersils <sils@sils.li>2023-06-18 12:30:12 +0200
commit79310611bd71b74f1d4c0875f2b63ecafd15f4a0 (patch)
tree2ce80bc26fd69db80d347a269ef9df61ab22d98a /sys/environment/default.nix
parentFeat(u/sils): Add neovim config (diff)
downloadnix-config-79310611bd71b74f1d4c0875f2b63ecafd15f4a0.tar.gz
nix-config-79310611bd71b74f1d4c0875f2b63ecafd15f4a0.zip
Feat(s/environment): Add CDPATH Variable
CDPATH makes cd-ing into directory really smooth
Diffstat (limited to '')
-rw-r--r--sys/environment/default.nix4
1 files changed, 3 insertions, 1 deletions
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 = [