Add keychain setup to fish
This commit is contained in:
parent
717acf5ddc
commit
02428e2d63
7
config/fish/conf.d/keychain.fish
Normal file
7
config/fish/conf.d/keychain.fish
Normal file
|
@ -0,0 +1,7 @@
|
|||
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
|
Loading…
Reference in a new issue