{"id":13815661,"url":"https://github.com/sunlei/zsh-ssh","last_synced_at":"2025-05-15T09:32:56.829Z","repository":{"id":45590381,"uuid":"324809178","full_name":"sunlei/zsh-ssh","owner":"sunlei","description":"Better host completion for ssh in Zsh.","archived":false,"fork":false,"pushed_at":"2024-11-28T07:55:27.000Z","size":36,"stargazers_count":145,"open_issues_count":9,"forks_count":33,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-28T08:31:32.512Z","etag":null,"topics":["completion","fzf","shell","ssh","zsh","zsh-completion","zsh-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunlei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-27T17:05:45.000Z","updated_at":"2024-11-28T07:55:31.000Z","dependencies_parsed_at":"2024-03-27T17:25:40.489Z","dependency_job_id":"5053e5dd-0e18-4de6-86d6-09fbf0627ac8","html_url":"https://github.com/sunlei/zsh-ssh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunlei%2Fzsh-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunlei%2Fzsh-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunlei%2Fzsh-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunlei%2Fzsh-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunlei","download_url":"https://codeload.github.com/sunlei/zsh-ssh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254313990,"owners_count":22050151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["completion","fzf","shell","ssh","zsh","zsh-completion","zsh-plugin"],"created_at":"2024-08-04T04:03:50.223Z","updated_at":"2025-05-15T09:32:56.617Z","avatar_url":"https://github.com/sunlei.png","language":"Shell","funding_links":[],"categories":["Zsh plugin","Completions","Shell"],"sub_categories":["Packages","ZSH on Windows"],"readme":"# zsh-ssh\n\nBetter host completion for ssh in Zsh.\n\n[![asciicast](https://asciinema.org/a/381405.svg)](https://asciinema.org/a/381405)\n\n- [zsh-ssh](#zsh-ssh)\n    - [Installation](#installation)\n        - [Zinit](#zinit)\n        - [Antigen](#antigen)\n        - [Oh My Zsh](#oh-my-zsh)\n        - [Sheldon](#sheldon)\n        - [Manual (Git Clone)](#manual-git-clone)\n    - [Usage](#usage)\n        - [SSH Config Example](#ssh-config-example)\n\n## Installation\n\nMake sure you have [fzf](https://github.com/junegunn/fzf) installed.\n\n### Zinit\n\n```shell\nzinit light sunlei/zsh-ssh\n```\n\n### Antigen\n\n```shell\nantigen bundle sunlei/zsh-ssh\n```\n\n### Oh My Zsh\n\n1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`)\n\n    ```shell\n    git clone https://github.com/sunlei/zsh-ssh ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-ssh\n    ```\n\n2. Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc`):\n\n    ```shell\n    plugins=(zsh-ssh $plugins)\n    ```\n\n3. Start a new terminal session.\n\n### Sheldon\n\n1. Add this config to `~/.config/sheldon/plugins.toml`\n\n    ```toml\n    [plugins.zsh-ssh]\n    github = 'sunlei/zsh-ssh'\n    ```\n\n2. Run `sheldon lock` to install the plugin.\n\n3. Start a new terminal session.\n\n### Manual (Git Clone)\n\n1. Clone this repository somewhere on your machine. For example: `~/.zsh/zsh-ssh`.\n\n    ```shell\n    git clone https://github.com/sunlei/zsh-ssh ~/.zsh/zsh-ssh\n    ```\n\n2. Add the following to your `.zshrc`:\n\n    ```shell\n    source ~/.zsh/zsh-ssh/zsh-ssh.zsh\n    ```\n\n3. Start a new terminal session.\n\n## Usage\n\nJust press \u003ckbd\u003eTab\u003c/kbd\u003e after `ssh` command as usual.\n\n### SSH Config Example\n\nYou can use `#_Desc` to set description.\n\n~/.ssh/config\n\n```text\nHost Bastion-Host\n    Hostname 1.1.1.1\n    User sunlei\n\nHost Development-Host\n    Hostname 2.2.2.2\n    IdentityFile ~/.ssh/development-host\n    #_Desc For Development\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunlei%2Fzsh-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunlei%2Fzsh-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunlei%2Fzsh-ssh/lists"}