1
0
mirror of https://github.com/DazAh/dotfiles synced 2026-05-21 18:25:46 +01:00
This commit is contained in:
DazAh
2019-10-13 01:22:24 +01:00
commit a7723448a0
29 changed files with 43892 additions and 0 deletions
+41
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff