2021-05-04 01:59:31 +00:00
|
|
|
# Completion
|
2012-04-13 15:21:50 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
Loads and configures <kbd>TAB</kbd> completion and provides additional
|
|
|
|
completions from the [zsh-completions][1] project.
|
2012-04-13 15:21:50 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
This module must be loaded late _after_ the _`utility`_ module and all other
|
|
|
|
modules that provide completion definitions.
|
2012-06-01 02:18:18 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Options
|
2018-10-12 08:55:55 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
- `COMPLETE_IN_WORD` complete from both ends of a word.
|
|
|
|
- `ALWAYS_TO_END` move cursor to the end of a completed word.
|
|
|
|
- `PATH_DIRS` perform path search even on command names with slashes.
|
|
|
|
- `AUTO_MENU` show completion menu on a successive <kbd>TAB</kbd> press.
|
|
|
|
- `AUTO_LIST` automatically list choices on ambiguous completion.
|
|
|
|
- `AUTO_PARAM_SLASH` if completed parameter is a directory, add a trailing
|
|
|
|
slash (`/`).
|
2021-05-05 17:59:01 +00:00
|
|
|
- `EXTENDED_GLOB` needed for file modification glob modifiers with _compinit_.
|
2021-05-04 01:59:31 +00:00
|
|
|
- `MENU_COMPLETE` do not autoselect the first completion entry.
|
|
|
|
- `FLOW_CONTROL` disable start/stop characters in shell editor.
|
2018-10-12 08:55:55 +00:00
|
|
|
|
2021-05-12 22:46:13 +00:00
|
|
|
## Variables
|
|
|
|
|
|
|
|
- `LS_COLORS` used by default for Zsh [standard style][2] 'list-colors'.
|
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Settings
|
2017-07-26 20:16:40 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
### Ignore _`/etc/hosts`_ Entries
|
2017-07-26 20:16:40 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
To ignore certain entries from static _`/etc/hosts`_ for host completion, add
|
|
|
|
the following lines in _`${ZDOTDIR:-$HOME}/.zpreztorc`_ with the IP addresses of
|
|
|
|
the hosts as they appear in _`/etc/hosts`_. Both IP address and the associated
|
|
|
|
hostname(s) 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).
|
2017-07-26 20:16:40 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \
|
2021-05-05 17:59:01 +00:00
|
|
|
'0.0.0.0' '127.0.0.1'
|
2017-07-26 20:16:40 +00:00
|
|
|
```
|
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Contributors
|
2012-04-13 15:21:50 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
Completions should be submitted to the [zsh-completions][1] project according to
|
|
|
|
its rules and regulations. This module will be synchronized against it.
|
2012-05-20 23:03:04 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Authors
|
2012-04-13 15:21:50 +00:00
|
|
|
|
2021-05-12 22:46:13 +00:00
|
|
|
_The authors of this module should be contacted via the [issue tracker][3]._
|
2012-04-13 15:21:50 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
2012-04-13 15:21:50 +00:00
|
|
|
|
2012-05-22 00:18:30 +00:00
|
|
|
[1]: https://github.com/zsh-users/zsh-completions
|
2021-05-12 22:46:13 +00:00
|
|
|
[2]: https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Standard-Styles
|
|
|
|
[3]: https://github.com/sorin-ionescu/prezto/issues
|