Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziglang/shell-completions
Shell completions for the Zig compiler.
https://github.com/ziglang/shell-completions
completion shell zig zsh
Last synced: 26 days ago
JSON representation
Shell completions for the Zig compiler.
- Host: GitHub
- URL: https://github.com/ziglang/shell-completions
- Owner: ziglang
- License: mit
- Created: 2020-12-29T21:47:29.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T19:14:22.000Z (7 months ago)
- Last Synced: 2024-12-24T20:07:34.954Z (about 1 month ago)
- Topics: completion, shell, zig, zsh
- Language: Shell
- Homepage:
- Size: 32.2 KB
- Stars: 60
- Watchers: 8
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shell-completions
Shell completions for the [Zig compiler](https://github.com/ziglang/zig).
## 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`
```sh
git clone https://github.com/ziglang/shell-completions $ZSH/custom/plugins/zig-shell-completions
```2. Add the plugin `zig-shell-completions` to `$plugin`
```sh
plugins+=(zig-shell-completions)
```## Installation for bash
```sh
curl -LO "https://raw.githubusercontent.com/ziglang/shell-completions/master/_zig.bash"
echo ". $PWD/_zig.bash" >> ~/.bashrc
```