diff options
| author | 2021-05-06 12:13:43 -0400 | |
|---|---|---|
| committer | 2021-05-06 12:13:43 -0400 | |
| commit | 4be2fb4e53dfd1493dc0e4603f2dbf005bea9a09 (patch) | |
| tree | fd655147927f0f5d5a75a7dce813abddbc1ae10f /dot_zsh/plugins/import-systemd-env | |
| parent | update tmux conf (diff) | |
remove zsh
Diffstat (limited to 'dot_zsh/plugins/import-systemd-env')
| -rw-r--r-- | dot_zsh/plugins/import-systemd-env | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/dot_zsh/plugins/import-systemd-env b/dot_zsh/plugins/import-systemd-env deleted file mode 100644 index e30d8cd..0000000 --- a/dot_zsh/plugins/import-systemd-env +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/zsh -# only applies to systemd -p1=$(ps -p 1 -o comm=) -[[ "$p1" = "systemd" ]] || return - -# we *import* expected systemd user env from environment.d -# I might later make a standalone utility just for that (environment.d on non-systemd systems) - -# warning: root access will mean being able to inject arbitrary code into your shell -# by way of replacing that executable -# this is why we test for systemd as pid1 (right now) rather than the presence of the binary -while read -r l; do - eval export $l - -done < <(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator) |
