Shell completions for the Zig compiler.
The _zig
file needs to be included in your $fpath
. This can be achieved in two ways:
_zig
file to one of the folders listed in $fpath
. You can list these folders with print -l $fpath
._zig
to the $fpath
. This can be achieved by adding fpath=(/path/to/this/repo/shell-completions $fpath)
to your ~/.zshrc
file (to update the current terminal run source ~/.zshrc
).Once the $fpath
variable is updated, run compinit
to rebuild ~/.zcompdump
.
zig-shell-completions
git clone https://github.com/ziglang/shell-completions $ZSH/custom/plugins/zig-shell-completions
zig-shell-completions
to $plugin
plugins+=(zig-shell-completions)
curl -LO "https://raw.githubusercontent.com/ziglang/shell-completions/master/_zig.bash"
echo ". $PWD/_zig.bash" >> ~/.bashrc