blob: a0d23e322a088a06408d450c6a36b0f44268396a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#compdef nix-update
# Zsh completion for the nix-update command.
_arguments \
'1: :->target' \
'*:: :->flags'
case $state in
target)
local -a commands
commands=(
'home-manager:Update and switch home-manager configuration'
'nixos:Update and switch NixOS configuration'
'both:Update and switch both configurations'
)
_describe 'command' commands
;;
flags)
_arguments \
'--only-flake[Only run nix flake update, skip switch commands]' \
'--only-switch[Only run switch commands, skip nix flake update]'
;;
esac
|