fix bash init

This commit is contained in:
Sridhar Ratnakumar 2021-09-17 15:03:00 -04:00
parent 6c1e316172
commit e967471ee3
2 changed files with 13 additions and 12 deletions

View file

@ -8,7 +8,7 @@ all:
nixos:
sudo nixos-rebuild switch -j auto
systemctl restart --user emanote
# systemctl restart --user emanote
# Not sure why this doesn't reliably work
h0:

View file

@ -12,6 +12,7 @@ rec {
# inputs.nix-doom-emacs.hmModule;
home.packages = with pkgs; [
gnumake
emanote
cachix
@ -82,17 +83,17 @@ rec {
ls = "l";
#h = "himalaya";
};
sessionVariables = { };
bashrcExtra = ''
. ~/.nix-profile/etc/profile.d/nix.sh
export PATH=$HOME/.nix-profile/bin:$PATH
# https://github.com/nix-community/home-manager/issues/1871#issuecomment-852739277
for completion_script in ~/.nix-profile/share/bash-completion/completions/*
do
source "$completion_script"
done
'';
sessionVariables = {};
# XXX: These are needed only on non-NixOS Linux (on NixOS, they are broken)
#bashrcExtra = ''
# . ~/.nix-profile/etc/profile.d/nix.sh
# export PATH=$HOME/.nix-profile/bin:$PATH
# # https://github.com/nix-community/home-manager/issues/1871#issuecomment-852739277
# for completion_script in ~/.nix-profile/share/bash-completion/completions/*
# do
# source "$completion_script"
# done
#'';
};
starship =