jonringer / nix-template

Make creating nix expressions easy
Creative Commons Zero v1.0 Universal
205 stars 8 forks source link

completions fail to load #16

Closed Artturin closed 2 years ago

Artturin commented 2 years ago

i put

eval "$(nix-template completions zsh)"

in my zshrc

i get _arguments: command not found when i start a new shell

happens without a config too

env -i zsh -d -f -i
eval "$(nix-template completions zsh)"
jonringer commented 2 years ago

looks like this is a zsh issue https://github.com/clap-rs/clap/issues/2014#issuecomment-673039994

I'll fix this in the nix expression once I update

jonringer commented 2 years ago

Installing the 0.1.3 version through nix should fix completions:

$ tree ./result/share/
./result/share/
├── bash-completion
│   └── completions
│       └── nix-template.bash
├── fish
│   └── vendor_completions.d
│       └── nix-template.fish
└── zsh
    └── site-functions
        └── _nix-template
Artturin commented 2 years ago

nope its not working but no errors trying to find out why

Artturin commented 2 years ago

well now it works i had to run compinit manually once for some reason ( probably something on my end ) edit: i disable the global compinit call so that was why

jonringer commented 2 years ago

completions were added to nixpkgs unstable