Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twfksh/zsh-ssh-agent
a bloat free utility plugin for managing ssh-agent in zsh
https://github.com/twfksh/zsh-ssh-agent
shell shell-script ssh ssh-agent zsh zsh-plugin zshrc
Last synced: 2 months ago
JSON representation
a bloat free utility plugin for managing ssh-agent in zsh
- Host: GitHub
- URL: https://github.com/twfksh/zsh-ssh-agent
- Owner: twfksh
- License: mit
- Created: 2024-07-13T20:06:52.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T15:27:44.000Z (5 months ago)
- Last Synced: 2024-09-29T07:40:14.334Z (3 months ago)
- Topics: shell, shell-script, ssh, ssh-agent, zsh, zsh-plugin, zshrc
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- trackawesomelist - ssh-agent (twfksh) (⭐1) - A bloat free utility plugin for managing ssh-agent in ZSH. This plugin automatically starts and manages `ssh-agent` whenever a new ternimal session starts. After running zsh-ssh-agent, you only need to `ssh-add` your keys once. The plugin will handle the rest. (Recently Updated / [Jul 16, 2024](/content/2024/07/16/README.md))
README
# zsh-ssh-agent
A bloat free utility plugin for managing `ssh-agent` in `zsh`. This plugin automatically starts and manages `ssh-agent` whenever a new ternimal session starts. After running `zsh-ssh-agent`, you only need to `ssh-add` your keys once. The plugin will handle the rest.
### Usage
To use `zsh-ssh-agent`, simply run the following command:
```zsh
zsh-ssh-agent
```### Installation
To install `zsh-ssh-agent` using `zap`, a minimal zsh plugin manager, add the following line to your `.zshrc` file:
```zsh
plug 'twfksh/zsh-ssh-agent'
```### Autostart
To ensure `ssh-agent` starts automatically when you open a new terminal session, add the following line to your `~/.zshrc` file:
```zsh
zsh_ssh_agent
```### Configuration
For seamless integration with `ssh-agent`, add the following line to `~/.ssh/config` file:
```
AddKeysToAgent yes
```With this option enabled keys used by `ssh` will be automatically added to the `ssh-agent`, no need to call `ssh-add` everytime.
### Note
Inspired by `ivakyb/fish_ssh_agent` that I've been using on fish shell.