summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2020-09-04 16:19:02 -0400
committerChloe Kudryavtsev <toast@toast.cafe>2020-09-04 16:19:02 -0400
commita92992118efeb252911c5de7c604f407f0c399b0 (patch)
tree2294b1abdf5528140816b7b30349f90ef4bdab2e
parentzsh: 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
-rw-r--r--dot_zsh/source/env.zsh6
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