mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-01 02:41:13 +00:00
9b6bf4a7cd
Entries from static '/etc/hosts' can now be ignored via 'zstyle' based configuration. Both IP address and corresponding hostname will be ignored during host completion. However, some of the entries ignored from '/etc/hosts' still might appear during completion because of their presence in 'ssh' configuration ('~/.ssh/config') or history ('~/.ssh/ssh_hosts', '~/.ssh/known_hosts' etc.).
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
Completion
|
|
==========
|
|
|
|
Loads and configures tab completion and provides additional completions from
|
|
the [zsh-completions][1] project.
|
|
|
|
This module must be loaded **after** the *utility* module.
|
|
|
|
Settings
|
|
--------
|
|
|
|
### Ignore */etc/hosts* Entries
|
|
|
|
To ignore certain entries from static */etc/hosts* for host completion, add the
|
|
following lines in *zpreztorc* with the IP addresses of the hosts as they
|
|
appear in */etc/hosts*. Both IP address and the corresponding hostname will be
|
|
ignored during host completion. However, some of the entries ignored from
|
|
*/etc/hosts* still might appear during completion because of their presence in
|
|
*ssh* configuration or history).
|
|
|
|
```sh
|
|
zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \
|
|
'0.0.0.0' '127.0.0.1'
|
|
```
|
|
|
|
Contributors
|
|
------------
|
|
|
|
Completions should be submitted to the [zsh-completions][1] project according
|
|
to its rules and regulations. This module will be synchronized against it.
|
|
|
|
Authors
|
|
-------
|
|
|
|
*The authors of this module should be contacted via the [issue tracker][2].*
|
|
|
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
|
|
|
[1]: https://github.com/zsh-users/zsh-completions
|
|
[2]: https://github.com/sorin-ionescu/prezto/issues
|