mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
feat(ssh): Load hosts in other ssh config files
If the ~/.ssh/config contains `Include` directives, it'd be better to parse the target config files if possible. This commit implements that. The included config can also have Include directives, but it's not parsed because of possibility of infinite loop, for now.
This commit is contained in:
parent
3604dc23e0
commit
e7620cac3c
2 changed files with 49 additions and 15 deletions
|
|
@ -1,7 +1,8 @@
|
|||
# ssh plugin
|
||||
|
||||
This plugin provides host completion based off of your `~/.ssh/config` file, and adds
|
||||
some utility functions to work with SSH keys.
|
||||
This plugin provides host completion based off of your `~/.ssh/config` file,
|
||||
and adds some utility functions to work with SSH keys. If the `~/.ssh/config`
|
||||
contains `Include` directives, the plugin also parse hosts in related files.
|
||||
|
||||
To use it, add `ssh` to the plugins array in your zshrc file:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue