blob: ee4115c57b7a589bab2eaac0b0fe1d5b629ea2ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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 \
'--flake-only[Only run nix flake update, skip switch commands]'
;;
esac
|