Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.