mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
systemd: replace profile.service with systemd-environment.d generator
This moves loading of the environment variables out of the normal service startup flow and has systemd load the variables early. Shim ZSH to load the environment.d configuration when running without systemd. Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
3
zsh/.gitignore
vendored
3
zsh/.gitignore
vendored
@ -1,4 +1 @@
|
||||
/antigen/
|
||||
/log/
|
||||
/histfile
|
||||
/.zcompdump*
|
||||
|
5
zsh/.zshenv
Normal file
5
zsh/.zshenv
Normal file
@ -0,0 +1,5 @@
|
||||
set -o allexport
|
||||
. ~/.config/environment.d/*.conf
|
||||
set +o allexport
|
||||
|
||||
# vim: ft=sh
|
@ -149,7 +149,7 @@ ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=cyan'
|
||||
ZSH_HIGHLIGHT_STYLES[assign]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[redirection]='fg=cyan,bold'
|
||||
|
||||
source "$DOTFILES/aliases"
|
||||
source "$XDG_CONFIG_HOME/aliases"
|
||||
|
||||
# Source secret keys and values into environment
|
||||
if [ -f "$XDG_CONFIG_HOME/secrets" ]; then
|
||||
|
Reference in New Issue
Block a user