mirror of
https://github.com/danhper/fish-ssh-agent.git
synced 2025-12-14 09:52:25 +00:00
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
# 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.
|
|
|
|
[](https://gitlab.com/kyb/fish_ssh_agent)
|
|
[](https://github.com/ivakyb/fish_ssh_agent)
|
|
|
|
## Usage
|
|
|
|
```fish
|
|
fish_ssh_agent
|
|
```
|
|
|
|
|
|
## Installation
|
|
|
|
```fish
|
|
wget https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P ~/.config/fish/functions/
|
|
```
|
|
|
|
### Autostart
|
|
Append next line to `~/.config/fish/config.fish`
|
|
```fish
|
|
fish_ssh_agent
|
|
```
|
|
|
|
|
|
## Useful note
|
|
Add this line to `~/.ssh/config`
|
|
```
|
|
AddKeysToAgent yes
|
|
```
|
|
With option enabled keys used by ssh will be automatically added to ssh-agent. No need to call `ssh-add`.
|
|
|
|
|
|
## Mirrors
|
|
https://gitlab.com/kyb/fish_ssh_agent
|
|
https://github.com/ivakyb/fish_ssh_agent
|