ssh-agent automatic startup for fish
-
Install fisherman https://github.com/fisherman/fisherman
-
Run:
fisher install https://github.com/virtualxdriver/ssh-agent.fish.git
Copy-paste the contents of the conf.d/ssh-agent.fish
into your .config/fish/config.fish
file.
If a previous instance cannot be found, ssh-agent
will be launched on shell startup automatically.
By default, ssh-agent_fish only loads the default identity.
You can load multiple identities with the __ssh_agent__identities
variable, for example:
set -U __ssh_agent__identities id_rsa id_rsa2
By default, identities stay in memory forever.
You can adjust the maximum lifetime of the identities with the __ssh_agent__lifetime
variable, for example:
set -U __ssh_agent__lifetime 4h
- oh-my-zsh ssh-agent plugin authors
- Joseph M. Reagle