mirror of
https://github.com/danhper/fish-ssh-agent.git
synced 2026-10-01 01:46:52 +00:00
25230a241f5ca96e5d6f042f88ef3b8cc346e826
When in an SSH session, try to connect to a forwarded agent first. If that fails, only then check if an SSH agent is already running on the machine. This fixes a situation where a .ssh/environment file left behind from a dead agent is checked first, ignoring the forwarded agent and starting a new agent on the machine.
fish-ssh-agent
Utility functions to start your ssh agent when using fish shell.
You will only need to run ssh-add and type your password once,
after the running ssh_agent should do the work for you.
Installation
Using fundle
Add
fundle plugin 'danhper/fish-ssh-agent'
to your config.fish, reload your shell and run fundle install.
Using Fisher
fisher install danhper/fish-ssh-agent
Manually
Copy functions and conf.d to your $__fish_config_dir directory. That's all.
Languages
Shell
100%