diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-13 20:18:46 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-13 20:18:46 +0200 |
commit | 949d2f7025cbfe4db316a3fc13199ac5c82d4b5b (patch) | |
tree | 60f196230405c88991d508bf674f09a16be0d56e | |
parent | d3311ada0ee90b20c6f4cf7d7ef2888c27dc3b87 (diff) |
[zshrc] use exec and keychain identity
Add keychain identity on startup, this is more useful because with
suspend I will only type the password once per day. Also it makes adding
with keyadd faster. Also use exec to have less processes, don't know if
it works though...
-rwxr-xr-x | bin/guiscripts/startw | 1 | ||||
-rw-r--r-- | config/essentials/zsh/.zshrc | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/guiscripts/startw b/bin/guiscripts/startw index 768f401..9b35556 100755 --- a/bin/guiscripts/startw +++ b/bin/guiscripts/startw @@ -1,5 +1,6 @@ #!/bin/sh eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents gpg,ssh)" +eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents gpg 3A626DD20A32EB2E5DD9CE71CFD9ABC97158CD5D 2> /dev/null)" Hyprland diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index d8675d4..0665533 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -5,9 +5,9 @@ then clear if [ "/dev/tty1" = "$TTY" ] then - startw > /dev/null 2>&1 + exec startw > /dev/null 2>&1 else - startx > /dev/null 2>&1 + exec startx > /dev/null 2>&1 fi exit fi |