Skip to content

a bloat free utility plugin for managing ssh-agent in zsh

License

Notifications You must be signed in to change notification settings

twfksh/zsh-ssh-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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-ssh-agent

Installation

To install zsh-ssh-agent using zap, a minimal zsh plugin manager, add the following line to your .zshrc file:

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_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.

About

a bloat free utility plugin for managing ssh-agent in zsh

Topics

Resources

License

Stars

Watchers

Forks

Languages