mirror of
https://github.com/DazAh/dotfiles
synced 2026-05-21 18:25:46 +01:00
test
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#compdef chezmoi
|
||||
_arguments \
|
||||
'1: :->level1' \
|
||||
'2: :->level2' \
|
||||
'3: :->level3' \
|
||||
'4: :_files'
|
||||
case $state in
|
||||
level1)
|
||||
case $words[1] in
|
||||
chezmoi)
|
||||
_arguments '1: :(add apply archive cat cd chattr completion data diff doctor dump edit edit-config forget help import init merge remove secret source source-path unmanaged update upgrade verify)'
|
||||
;;
|
||||
*)
|
||||
_arguments '*: :_files'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
level2)
|
||||
case $words[2] in
|
||||
secret)
|
||||
_arguments '2: :(bitwarden generic keepassxc keyring lastpass onepassword pass vault)'
|
||||
;;
|
||||
*)
|
||||
_arguments '*: :_files'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
level3)
|
||||
case $words[3] in
|
||||
keyring)
|
||||
_arguments '3: :(get set)'
|
||||
;;
|
||||
*)
|
||||
_arguments '*: :_files'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
_arguments '*: :_files'
|
||||
;;
|
||||
esac
|
||||
+1048
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user