name | mode | size |
---|---|---|
.. | ||
.gitattributes | 100644 | 0 kb |
LICENSE | 100644 | 1 kb |
README.md | 100644 | 1 kb |
_nix-build | 100644 | 1 kb |
_nix-channel | 100644 | 1 kb |
_nix-collect-garbage | 100644 | 0 kb |
_nix-common-options | 100644 | 10 kb |
_nix-copy-closure | 100644 | 1 kb |
_nix-env | 100644 | 5 kb |
_nix-hash | 100644 | 1 kb |
_nix-install-package | 100644 | 0 kb |
_nix-instantiate | 100644 | 1 kb |
_nix-prefetch-url | 100644 | 0 kb |
_nix-push | 100644 | 1 kb |
_nix-shell | 100644 | 1 kb |
_nix-store | 100644 | 4 kb |
_nixops | 100644 | 7 kb |
_nixos-build-vms | 100644 | 0 kb |
_nixos-container | 100644 | 2 kb |
_nixos-generate-config | 100644 | 0 kb |
_nixos-install | 100644 | 0 kb |
_nixos-rebuild | 100644 | 1 kb |
_nixos-version | 100644 | 0 kb |
init.zsh | 100644 | 0 kb |
nix.plugin.zsh | 100644 | 1 kb |
ZSH Completions for Nix and NixOS
=================================
This project aims to provide a highly complete set of ZSH completions for [Nix](https://nixos.org/nix/),
[NixOS](https://nixos.org/), [NixOps](http://nixos.org/nixops/), and the surrounding ecosystem.
NixOS
----------------------
Set `programs.zsh.enableCompletion = true` in `/etc/nix/configuration.nix` and either add `nix-zsh-completions` to `systemPackages` or install it locally: `nix-env -iA nixos.nix-zsh-completions`
Oh-My-ZSH Installation
----------------------
```zsh
git clone git@github.com:spwhitt/nix-zsh-completions.git ~/.oh-my-zsh/custom/plugins/nix
```
Then add `nix` to the plugins list in `~/.zshrc`
Antigen Installation
--------------------
Add the following to `~/.zshrc`
```zsh
antigen bundle git@github.com:spwhitt/nix-zsh-completions.git
```
Plain ZSH Installation
----------------------
Clone this repository and add the following to `~/.zshrc` with the path to
`nix-zsh-completions` updated as necessary.
```zsh
source $HOME/nix-zsh-completions/nix.plugin.zsh
fpath=($HOME/nix-zsh-completions $fpath)
autoload -U compinit && compinit
```
ZSH Completions Tutorial
------------------------
[zsh-completions-howto](https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org)