diff options
| author | 2020-09-04 16:19:02 -0400 | |
|---|---|---|
| committer | 2020-09-04 16:19:02 -0400 | |
| commit | a92992118efeb252911c5de7c604f407f0c399b0 (patch) | |
| tree | 2294b1abdf5528140816b7b30349f90ef4bdab2e /dot_zsh/source/env.zsh | |
| parent | zsh: add import-systemd-env plugin (diff) | |
zsh: automatically import systemd env if missing
the check is against TERMINFO_DIRS - it'll get added in a second I promise
Diffstat (limited to '')
| -rw-r--r-- | dot_zsh/source/env.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dot_zsh/source/env.zsh b/dot_zsh/source/env.zsh index c17b0a5..ddd14da 100644 --- a/dot_zsh/source/env.zsh +++ b/dot_zsh/source/env.zsh @@ -1,3 +1,9 @@ export EDITOR==micro export GIT_EDITOR==micro export PAGER='less -R' + +if [[ -z $TERMINFO_DIRS ]]; then + autoload -Uz autosource + # maybe others later! + autosource import-systemd-env +fi |
