Move user / system specifics to .profile file instead of .zshrc
This ensures it is properly set on login. Tools like dmenu and such are properly find when installed by nix. This was not zsh specific anyway.
This commit is contained in:
parent
a62943d0bb
commit
51fbae7d71
1
home.nix
1
home.nix
|
@ -104,6 +104,7 @@
|
|||
};
|
||||
|
||||
home.file = {
|
||||
".profile".source = ./home/files/profile;
|
||||
".myclirc".source = ./home/files/myclirc;
|
||||
".agignore".source = ./home/files/agignore;
|
||||
};
|
||||
|
|
8
home/files/profile
Normal file
8
home/files/profile
Normal file
|
@ -0,0 +1,8 @@
|
|||
if [[ -z $SSH_AGENT_PID ]]; then
|
||||
hash ssh-agent 2> /dev/null && eval $(ssh-agent) > /dev/null
|
||||
fi
|
||||
|
||||
# "install" nix
|
||||
if [ -e /home/daniels/.nix-profile/etc/profile.d/nix.sh ]; then . /home/daniels/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
||||
export LOCALE_ARCHIVE="$(readlink ~/.nix-profile/lib/locale)/locale-archive"
|
||||
export NIX_PATH=$HOME/.nix-defexpr/channels
|
|
@ -60,22 +60,6 @@
|
|||
share = false;
|
||||
};
|
||||
|
||||
initExtraBeforeCompInit = ''
|
||||
if [[ -z $SSH_AGENT_PID ]]; then
|
||||
hash ssh-agent 2> /dev/null && eval $(ssh-agent) > /dev/null
|
||||
fi
|
||||
|
||||
# Global composer installed packages.
|
||||
export PATH=~/.composer/vendor/bin:$PATH
|
||||
# Own "binaries" / executables, local to this machine
|
||||
export PATH=~/bin:$PATH
|
||||
|
||||
# "install" nix
|
||||
if [ -e /home/daniels/.nix-profile/etc/profile.d/nix.sh ]; then . /home/daniels/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
||||
export LOCALE_ARCHIVE="$(readlink ~/.nix-profile/lib/locale)/locale-archive"
|
||||
export NIX_PATH=$HOME/.nix-defexpr/channels
|
||||
'';
|
||||
|
||||
initExtra = ''
|
||||
autoload -U colors && colors
|
||||
autoload -U promptinit
|
||||
|
|
Loading…
Reference in a new issue