Always add SSH keys to ssh-agent

This commit is contained in:
Sam A. 2023-03-14 15:57:38 +01:00
parent 0deeea5b74
commit ac2287dbfc
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
3 changed files with 10 additions and 4 deletions

View file

@ -6,5 +6,4 @@ kill_services() {
} }
[[ $(. /etc/os-release && echo $ID) == "artix" ]] && [[ $(tty) == "/dev/tty1" ]] && [[ $(. /etc/os-release && echo $ID) == "artix" ]] && [[ $(tty) == "/dev/tty1" ]] &&
kill_services >/dev/null kill_services &> /dev/null
unfunction kill_services

View file

@ -7,5 +7,8 @@ zstyle ':completion:*' menu yes select
# Friendly names in Antidote # Friendly names in Antidote
zstyle ':antidote:bundle' use-friendly-names 'yes' zstyle ':antidote:bundle' use-friendly-names 'yes'
# Extended globs
setopt extendedglob
# Right indentation off # Right indentation off
ZLE_RPROMPT_INDENT=0 ZLE_RPROMPT_INDENT=0

View file

@ -1,2 +1,6 @@
[[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]] && if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
eval "$(ssh-agent)" &> /dev/null {
eval "$(ssh-agent)"
ssh-add ~/.ssh/id_^*.pub
} &> /dev/null
fi