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" ]] &&
|
[[ $(. /etc/os-release && echo $ID) == "artix" ]] && [[ $(tty) == "/dev/tty1" ]] &&
|
||||||
kill_services >/dev/null
|
kill_services &> /dev/null
|
||||||
unfunction kill_services
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue