8 lines
317 B
Fish
8 lines
317 B
Fish
if status is-login
|
|
and status is-interactive
|
|
# To add a key, set -Ua SSH_KEYS_TO_AUTOLOAD keypath
|
|
# To remove a key, set -U --erase SSH_KEYS_TO_AUTOLOAD[index_of_key]
|
|
keychain --eval --quiet --noask "$HOME/.ssh/id_ed25519" | source
|
|
keychain --eval --quiet --noask "$HOME/.ssh/id_rsa" | source
|
|
end
|