diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-05 19:49:12 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-05 19:49:12 +0100 |
commit | a7309ce61c093caeb554c20497f4e4b765073203 (patch) | |
tree | 6e7c9e559253f0f0584175c582624eec29a0d5cb /config/essentials/zsh | |
parent | 58bf86c706c5a442da4fb01ea26e06f1ed291d45 (diff) | |
parent | 112449dd19eaae6769ef95a70b3e52234256400c (diff) |
checkpoint
Diffstat (limited to 'config/essentials/zsh')
-rwxr-xr-x | config/essentials/zsh/.zprofile | 7 | ||||
-rw-r--r-- | config/essentials/zsh/.zshrc | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/config/essentials/zsh/.zprofile b/config/essentials/zsh/.zprofile deleted file mode 100755 index 9072f28..0000000 --- a/config/essentials/zsh/.zprofile +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -if { [ "$TTY" = "/dev/tty1" ] || [ "$TTY" = "/dev/tty8" ]; } && [ "$(id -u)" -ne 0 ]; then - eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents gpg,ssh)" - exec startx > /dev/null 2>&1 - exit -fi diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 68aae3f..3a75873 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -1,5 +1,12 @@ #!/bin/zsh +if { [ "$TTY" = "/dev/tty1" ] || [ "$TTY" = "/dev/tty8" ]; } && [ "$(id -u)" -ne 0 ]; then + eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents ssh,gpg)" + keychain --dir "$XDG_CONFIG_HOME/keychain" --quiet --agents gpg IDENTITY #FILTERED + exec startx > /dev/null 2>&1 + exit +fi + # zmodload zsh/zprof autoload -U select-word-style |