blob: a9500e6df4e5695152111f712ef09f6d3214b1d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#compdef nix-update
_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
|