Having a vim modeline or emacs local variable line somewhere in the middle of the file isn't really helpful. By default, vim will only check the first and last 5 lines of a file for a modeline (assuming the modeline option is enabled). Emacs is even more strict about the type of local variable line that was in use, it will only check the first line of the file or the second line if the first line specifies a script interpreter (which isn't the case here). Move the vim modeline to the end of the file so that it can actually be found by vim but is out of the way for editing. For emacs more work is required, convert that to the more verbose Local Variables syntax which emacs will look for starting 3000 characters from the end of the file. Also there is no zsh mode for emacs (according to zsh-users/zsh-completions#75), use the "Shell-Script" mode instead. This seems to automatically detect that the files are for zsh. I'm not an emacs user, so I haven't tested that portion much. But, this does at least improve the syntax highlighting there. |
||
---|---|---|
src | ||
.editorconfig | ||
.gitignore | ||
README.md |
README.md
zsh-completions
Additional completion definitions for Zsh.
This projects aims at gathering/developing new completion scripts that are not available in Zsh yet. The scripts are meant to be contributed to the Zsh project when stable enough.
Status
See issues for details on each completion definition.
Usage
Using packages
- Arch Linux: AUR/zsh-completions / AUR/zsh-completions-git
- Gentoo: scrill overlay
- Mac OS: Homebrew
- Debian based distributions (Debian/Ubuntu/Linux Mint...): Packager needed, please get in touch !
- RPM based distributions (Fedora/RHEL/CentOS...): Packager needed, please get in touch !
Manual installation
-
Clone the repository:
git clone git://github.com/zsh-users/zsh-completions.git
-
Include the directory in your
$fpath
, for example by adding in~/.zshrc
:fpath=(path/to/zsh-completions/src $fpath)
-
You may have to force rebuild
zcompdump
:rm -f ~/.zcompdump; compinit
Contributing
Contributions are welcome, just make sure you follow the guidelines:
- Please add a header containing authors, license info, status and origin of the script (example here).
- Please try to follow Zsh completion style guide.
- Send a pull request or ask for committer access.
License
See each file for license details.