From d79faa9e1b36e99dcf8925fc3271f32950f00309 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 29 Dec 2024 07:09:24 +0100 Subject: checkpoint --- config/essentials/zsh/.zprofile | 7 ------- config/essentials/zsh/.zshrc | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100755 config/essentials/zsh/.zprofile (limited to 'config/essentials/zsh') 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 -- cgit v1.2.3