Always add SSH keys to ssh-agent
This commit is contained in:
parent
0deeea5b74
commit
ac2287dbfc
|
@ -6,5 +6,4 @@ kill_services() {
|
|||
}
|
||||
|
||||
[[ $(. /etc/os-release && echo $ID) == "artix" ]] && [[ $(tty) == "/dev/tty1" ]] &&
|
||||
kill_services >/dev/null
|
||||
unfunction kill_services
|
||||
kill_services &> /dev/null
|
||||
|
|
|
@ -7,5 +7,8 @@ zstyle ':completion:*' menu yes select
|
|||
# Friendly names in Antidote
|
||||
zstyle ':antidote:bundle' use-friendly-names 'yes'
|
||||
|
||||
# Extended globs
|
||||
setopt extendedglob
|
||||
|
||||
# Right indentation off
|
||||
ZLE_RPROMPT_INDENT=0
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
[[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]] &&
|
||||
eval "$(ssh-agent)" &> /dev/null
|
||||
if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
|
||||
{
|
||||
eval "$(ssh-agent)"
|
||||
ssh-add ~/.ssh/id_^*.pub
|
||||
} &> /dev/null
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue