summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-06-13 21:36:41 -0700
committerBen Sima <ben@bsima.me>2018-06-13 21:36:41 -0700
commit735bf7d7f3b85506446e03a0045f137e438cf340 (patch)
tree265d880e45357a79dcd5a006bcdb58e969796452
parentbd2ee54a2939549768b10cdd59ee36d39e8117b6 (diff)
Source hm-session-vars.hs just in case
-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