Shell completions for the Zig compiler.
  • Shell 99.8%
  • Makefile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-11-25 11:26:24 +01:00
_zig update zsh completions to latest zig 2025-06-29 20:24:11 +03:00
_zig.bash adds reply action returning build steps 2025-06-29 17:54:12 +02:00
LICENSE init 2020-12-29 23:46:24 +02:00
Makefile feat: add simple way to maintain bash completion script 2023-02-20 00:26:23 +02:00
README.md README: github -> codeberg 2025-11-25 11:26:24 +01:00
zig-shell-completions.plugin.zsh Add oh my zsh plugin 2023-11-18 19:01:08 +02:00
zig.completor.bash adds reply action returning build steps 2025-06-29 17:54:12 +02:00

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:

  1. Move the _zig file to one of the folders listed in $fpath. You can list these folders with print -l $fpath.
  2. Add the folder containing _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.

Installation for Oh My Zsh

  1. Clone the plugin as zig-shell-completions
git clone https://codeberg.org/ziglang/shell-completions $ZSH/custom/plugins/zig-shell-completions
  1. Add the plugin zig-shell-completions to $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