nixos/config/fish/conf.d/keychain.fish
2023-02-25 09:12:07 +00:00

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