1
0
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:
2020-08-11 11:45:48 +01:00
parent 322adb478a
commit 521f462141
12 changed files with 48 additions and 81 deletions

3
zsh/.gitignore vendored
View File

@ -1,4 +1 @@
/antigen/
/log/
/histfile
/.zcompdump*

5
zsh/.zshenv Normal file
View File

@ -0,0 +1,5 @@
set -o allexport
. ~/.config/environment.d/*.conf
set +o allexport
# vim: ft=sh

View File

@ -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