mirror of
https://codeberg.org/ziglang/shell-completions.git
synced 2026-11-04 02:35:58 +00:00
Shell completions for the Zig compiler.
- Shell 99.8%
- Makefile 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| _zig | ||
| _zig.bash | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| zig-shell-completions.plugin.zsh | ||
| zig.completor.bash | ||
shell-completions
Shell completions for the Zig compiler.
Installation for zsh
The _zig file needs to be included in your $fpath. This can be achieved in two ways:
- Move the
_zigfile to one of the folders listed in$fpath. You can list these folders withprint -l $fpath. - Add the folder containing
_zigto the$fpath. This can be achieved by addingfpath=(/path/to/this/repo/shell-completions $fpath)to your~/.zshrcfile (to update the current terminal runsource ~/.zshrc).
Once the $fpath variable is updated, run compinit to rebuild ~/.zcompdump.
Installation for Oh My Zsh
- Clone the plugin as
zig-shell-completions
git clone https://codeberg.org/ziglang/shell-completions $ZSH/custom/plugins/zig-shell-completions
- Add the plugin
zig-shell-completionsto$plugin
plugins+=(zig-shell-completions)
Installation for bash
curl -LO "https://codeberg.org/ziglang/shell-completions/raw/branch/master/_zig.bash"
echo ". $PWD/_zig.bash" >> ~/.bashrc