### Install zsh-ssh with Zinit Source: https://github.com/sunlei/zsh-ssh/blob/master/README.md This snippet shows how to install the zsh-ssh plugin using Zinit, a Zsh plugin manager. Ensure fzf is installed before running this command. ```shell zinit light sunlei/zsh-ssh ``` -------------------------------- ### Example SSH configuration with custom descriptions Source: https://github.com/sunlei/zsh-ssh/blob/master/README.md This example demonstrates how to configure SSH hosts in `~/.ssh/config`, including the use of `#_Desc` to add custom descriptions for better host completion. These descriptions appear when using `ssh` with the plugin. ```text Host Bastion-Host Hostname 1.1.1.1 User sunlei Host Development-Host Hostname 2.2.2.2 IdentityFile ~/.ssh/development-host #_Desc For Development ``` -------------------------------- ### Install zsh-ssh with Antigen Source: https://github.com/sunlei/zsh-ssh/blob/master/README.md This snippet demonstrates how to install the zsh-ssh plugin using Antigen, another popular Zsh plugin manager. Prior installation of fzf is required. ```shell antigen bundle sunlei/zsh-ssh ``` -------------------------------- ### Manually clone zsh-ssh repository Source: https://github.com/sunlei/zsh-ssh/blob/master/README.md This command manually clones the zsh-ssh repository to a specified location on your machine. This is the initial step for a manual installation without a plugin manager. ```shell git clone https://github.com/sunlei/zsh-ssh ~/.zsh/zsh-ssh ``` -------------------------------- ### Clone zsh-ssh repository for Oh My Zsh Source: https://github.com/sunlei/zsh-ssh/blob/master/README.md This command clones the zsh-ssh repository into the Oh My Zsh custom plugins directory. This is the first step for manual installation with Oh My Zsh. ```shell git clone https://github.com/sunlei/zsh-ssh ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-ssh ``` -------------------------------- ### Configure zsh-ssh plugin with Sheldon Source: https://github.com/sunlei/zsh-ssh/blob/master/README.md This TOML configuration snippet adds the zsh-ssh plugin to Sheldon's plugin management system. Place this content in your `~/.config/sheldon/plugins.toml` file. ```toml [plugins.zsh-ssh] github = 'sunlei/zsh-ssh' ``` -------------------------------- ### Source zsh-ssh plugin in .zshrc Source: https://github.com/sunlei/zsh-ssh/blob/master/README.md This snippet shows how to source the zsh-ssh plugin file directly in your `~/.zshrc` after manual cloning. This activates the plugin for your Zsh sessions. ```shell source ~/.zsh/zsh-ssh/zsh-ssh.zsh ``` -------------------------------- ### Configure zsh-ssh plugin in Oh My Zsh Source: https://github.com/sunlei/zsh-ssh/blob/master/README.md This snippet shows how to add the zsh-ssh plugin to the list of loaded plugins in your `~/.zshrc` file for Oh My Zsh. This activates the plugin after cloning. ```shell plugins=(zsh-ssh $plugins) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.