summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/home.nix b/home.nix
index 8753206..77bc9c1 100644
--- a/home.nix
+++ b/home.nix
@@ -132,7 +132,9 @@ in
bash = {
enable = true;
initExtra = ''
- [[ -f ~/.nix-profile/etc/profile.d/nix.sh ]] && . ~/.nix-profile/etc/profile.d/nix.sh
+ DIR=~/.nix-profile/etc/profile.d
+ [[ -f "$DIR/nix.sh" ]] && . "$DIR/nix.sh"
+ [[ -f "$DIR/hm-session-vars.sh" ]] && . "$DIR/hm-session-vars.sh"
'';
shellAliases = {
#z = "fasd_cd -d"; # cd, same functionality as j in autojump