1#compdef atuin
2
3autoload -U is-at-least
4
5_atuin() {
6 typeset -A opt_args
7 typeset -a _arguments_options
8 local ret=1
9
10 if is-at-least 5.2; then
11 _arguments_options=(-s -S -C)
12 else
13 _arguments_options=(-s -C)
14 fi
15
16 local context curcontext="$curcontext" state line
17 _arguments "${_arguments_options[@]}" \
18'-h[Print help]' \
19'--help[Print help]' \
20'-V[Print version]' \
21'--version[Print version]' \
22":: :_atuin_commands" \
23"*::: :->atuin" \
24&& ret=0
25 case $state in
26 (atuin)
27 words=($line[1] "${words[@]}")
28 (( CURRENT += 1 ))
29 curcontext="${curcontext%:*:*}:atuin-command-$line[1]:"
30 case $line[1] in
31 (history)
32_arguments "${_arguments_options[@]}" \
33'-h[Print help]' \
34'--help[Print help]' \
35":: :_atuin__history_commands" \
36"*::: :->history" \
37&& ret=0
38
39 case $state in
40 (history)
41 words=($line[1] "${words[@]}")
42 (( CURRENT += 1 ))
43 curcontext="${curcontext%:*:*}:atuin-history-command-$line[1]:"
44 case $line[1] in
45 (start)
46_arguments "${_arguments_options[@]}" \
47'-h[Print help]' \
48'--help[Print help]' \
49'*::command:' \
50&& ret=0
51;;
52(end)
53_arguments "${_arguments_options[@]}" \
54'-e+[]:EXIT: ' \
55'--exit=[]:EXIT: ' \
56'-h[Print help]' \
57'--help[Print help]' \
58':id:' \
59&& ret=0
60;;
61(list)
62_arguments "${_arguments_options[@]}" \
63'-f+[Available variables: {command}, {directory}, {duration}, {user}, {host} and {time}. Example: --format "{time} - \[{duration}\] - {directory}$\\t{command}"]:FORMAT: ' \
64'--format=[Available variables: {command}, {directory}, {duration}, {user}, {host} and {time}. Example: --format "{time} - \[{duration}\] - {directory}$\\t{command}"]:FORMAT: ' \
65'-c[]' \
66'--cwd[]' \
67'-s[]' \
68'--session[]' \
69'--human[]' \
70'--cmd-only[Show only the text of the command]' \
71'-h[Print help]' \
72'--help[Print help]' \
73&& ret=0
74;;
75(last)
76_arguments "${_arguments_options[@]}" \
77'-f+[Available variables: {command}, {directory}, {duration}, {user}, {host} and {time}. Example: --format "{time} - \[{duration}\] - {directory}$\\t{command}"]:FORMAT: ' \
78'--format=[Available variables: {command}, {directory}, {duration}, {user}, {host} and {time}. Example: --format "{time} - \[{duration}\] - {directory}$\\t{command}"]:FORMAT: ' \
79'--human[]' \
80'--cmd-only[Show only the text of the command]' \
81'-h[Print help]' \
82'--help[Print help]' \
83&& ret=0
84;;
85(help)
86_arguments "${_arguments_options[@]}" \
87":: :_atuin__history__help_commands" \
88"*::: :->help" \
89&& ret=0
90
91 case $state in
92 (help)
93 words=($line[1] "${words[@]}")
94 (( CURRENT += 1 ))
95 curcontext="${curcontext%:*:*}:atuin-history-help-command-$line[1]:"
96 case $line[1] in
97 (start)
98_arguments "${_arguments_options[@]}" \
99&& ret=0
100;;
101(end)
102_arguments "${_arguments_options[@]}" \
103&& ret=0
104;;
105(list)
106_arguments "${_arguments_options[@]}" \
107&& ret=0
108;;
109(last)
110_arguments "${_arguments_options[@]}" \
111&& ret=0
112;;
113(help)
114_arguments "${_arguments_options[@]}" \
115&& ret=0
116;;
117 esac
118 ;;
119esac
120;;
121 esac
122 ;;
123esac
124;;
125(import)
126_arguments "${_arguments_options[@]}" \
127'-h[Print help]' \
128'--help[Print help]' \
129":: :_atuin__import_commands" \
130"*::: :->import" \
131&& ret=0
132
133 case $state in
134 (import)
135 words=($line[1] "${words[@]}")
136 (( CURRENT += 1 ))
137 curcontext="${curcontext%:*:*}:atuin-import-command-$line[1]:"
138 case $line[1] in
139 (auto)
140_arguments "${_arguments_options[@]}" \
141'-h[Print help]' \
142'--help[Print help]' \
143&& ret=0
144;;
145(zsh)
146_arguments "${_arguments_options[@]}" \
147'-h[Print help]' \
148'--help[Print help]' \
149&& ret=0
150;;
151(zsh-hist-db)
152_arguments "${_arguments_options[@]}" \
153'-h[Print help]' \
154'--help[Print help]' \
155&& ret=0
156;;
157(bash)
158_arguments "${_arguments_options[@]}" \
159'-h[Print help]' \
160'--help[Print help]' \
161&& ret=0
162;;
163(resh)
164_arguments "${_arguments_options[@]}" \
165'-h[Print help]' \
166'--help[Print help]' \
167&& ret=0
168;;
169(fish)
170_arguments "${_arguments_options[@]}" \
171'-h[Print help]' \
172'--help[Print help]' \
173&& ret=0
174;;
175(nu)
176_arguments "${_arguments_options[@]}" \
177'-h[Print help]' \
178'--help[Print help]' \
179&& ret=0
180;;
181(nu-hist-db)
182_arguments "${_arguments_options[@]}" \
183'-h[Print help]' \
184'--help[Print help]' \
185&& ret=0
186;;
187(help)
188_arguments "${_arguments_options[@]}" \
189":: :_atuin__import__help_commands" \
190"*::: :->help" \
191&& ret=0
192
193 case $state in
194 (help)
195 words=($line[1] "${words[@]}")
196 (( CURRENT += 1 ))
197 curcontext="${curcontext%:*:*}:atuin-import-help-command-$line[1]:"
198 case $line[1] in
199 (auto)
200_arguments "${_arguments_options[@]}" \
201&& ret=0
202;;
203(zsh)
204_arguments "${_arguments_options[@]}" \
205&& ret=0
206;;
207(zsh-hist-db)
208_arguments "${_arguments_options[@]}" \
209&& ret=0
210;;
211(bash)
212_arguments "${_arguments_options[@]}" \
213&& ret=0
214;;
215(resh)
216_arguments "${_arguments_options[@]}" \
217&& ret=0
218;;
219(fish)
220_arguments "${_arguments_options[@]}" \
221&& ret=0
222;;
223(nu)
224_arguments "${_arguments_options[@]}" \
225&& ret=0
226;;
227(nu-hist-db)
228_arguments "${_arguments_options[@]}" \
229&& ret=0
230;;
231(help)
232_arguments "${_arguments_options[@]}" \
233&& ret=0
234;;
235 esac
236 ;;
237esac
238;;
239 esac
240 ;;
241esac
242;;
243(stats)
244_arguments "${_arguments_options[@]}" \
245'-c+[How many top commands to list]:COUNT: ' \
246'--count=[How many top commands to list]:COUNT: ' \
247'-h[Print help]' \
248'--help[Print help]' \
249'*::period -- compute statistics for the specified period, leave blank for statistics since the beginning:' \
250&& ret=0
251;;
252(search)
253_arguments "${_arguments_options[@]}" \
254'-c+[Filter search result by directory]:CWD: ' \
255'--cwd=[Filter search result by directory]:CWD: ' \
256'--exclude-cwd=[Exclude directory from results]:EXCLUDE_CWD: ' \
257'-e+[Filter search result by exit code]:EXIT: ' \
258'--exit=[Filter search result by exit code]:EXIT: ' \
259'--exclude-exit=[Exclude results with this exit code]:EXCLUDE_EXIT: ' \
260'-b+[Only include results added before this date]:BEFORE: ' \
261'--before=[Only include results added before this date]:BEFORE: ' \
262'--after=[Only include results after this date]:AFTER: ' \
263'--limit=[How many entries to return at most]:LIMIT: ' \
264'--offset=[Offset from the start of the results]:OFFSET: ' \
265'--filter-mode=[Allow overriding filter mode over config]:FILTER_MODE:(global host session directory)' \
266'--search-mode=[Allow overriding search mode over config]:SEARCH_MODE:(prefix full-text fuzzy skim)' \
267'-f+[Available variables: {command}, {directory}, {duration}, {user}, {host}, {time}, {exit} and {relativetime}. Example: --format "{time} - \[{duration}\] - {directory}$\\t{command}"]:FORMAT: ' \
268'--format=[Available variables: {command}, {directory}, {duration}, {user}, {host}, {time}, {exit} and {relativetime}. Example: --format "{time} - \[{duration}\] - {directory}$\\t{command}"]:FORMAT: ' \
269'--inline-height=[Set the maximum number of lines Atuin'\''s interface should take up]:INLINE_HEIGHT: ' \
270'-i[Open interactive search UI]' \
271'--interactive[Open interactive search UI]' \
272'--shell-up-key-binding[Marker argument used to inform atuin that it was invoked from a shell up-key binding (hidden from help to avoid confusion)]' \
273'--human[Use human-readable formatting for time]' \
274'--cmd-only[Show only the text of the command]' \
275'--delete[Delete anything matching this query. Will not print out the match]' \
276'--delete-it-all[Delete EVERYTHING!]' \
277'-r[Reverse the order of results, oldest first]' \
278'--reverse[Reverse the order of results, oldest first]' \
279'-h[Print help]' \
280'--help[Print help]' \
281'*::query:' \
282&& ret=0
283;;
284(sync)
285_arguments "${_arguments_options[@]}" \
286'-f[Force re-download everything]' \
287'--force[Force re-download everything]' \
288'-h[Print help]' \
289'--help[Print help]' \
290&& ret=0
291;;
292(login)
293_arguments "${_arguments_options[@]}" \
294'-u+[]:USERNAME: ' \
295'--username=[]:USERNAME: ' \
296'-p+[]:PASSWORD: ' \
297'--password=[]:PASSWORD: ' \
298'-k+[The encryption key for your account]:KEY: ' \
299'--key=[The encryption key for your account]:KEY: ' \
300'-h[Print help]' \
301'--help[Print help]' \
302&& ret=0
303;;
304(logout)
305_arguments "${_arguments_options[@]}" \
306'-h[Print help]' \
307'--help[Print help]' \
308&& ret=0
309;;
310(register)
311_arguments "${_arguments_options[@]}" \
312'-u+[]:USERNAME: ' \
313'--username=[]:USERNAME: ' \
314'-p+[]:PASSWORD: ' \
315'--password=[]:PASSWORD: ' \
316'-e+[]:EMAIL: ' \
317'--email=[]:EMAIL: ' \
318'-h[Print help]' \
319'--help[Print help]' \
320&& ret=0
321;;
322(key)
323_arguments "${_arguments_options[@]}" \
324'--base64[Switch to base64 output of the key]' \
325'-h[Print help]' \
326'--help[Print help]' \
327&& ret=0
328;;
329(status)
330_arguments "${_arguments_options[@]}" \
331'-h[Print help]' \
332'--help[Print help]' \
333&& ret=0
334;;
335(account)
336_arguments "${_arguments_options[@]}" \
337'-h[Print help]' \
338'--help[Print help]' \
339":: :_atuin__account_commands" \
340"*::: :->account" \
341&& ret=0
342
343 case $state in
344 (account)
345 words=($line[1] "${words[@]}")
346 (( CURRENT += 1 ))
347 curcontext="${curcontext%:*:*}:atuin-account-command-$line[1]:"
348 case $line[1] in
349 (login)
350_arguments "${_arguments_options[@]}" \
351'-u+[]:USERNAME: ' \
352'--username=[]:USERNAME: ' \
353'-p+[]:PASSWORD: ' \
354'--password=[]:PASSWORD: ' \
355'-k+[The encryption key for your account]:KEY: ' \
356'--key=[The encryption key for your account]:KEY: ' \
357'-h[Print help]' \
358'--help[Print help]' \
359&& ret=0
360;;
361(register)
362_arguments "${_arguments_options[@]}" \
363'-u+[]:USERNAME: ' \
364'--username=[]:USERNAME: ' \
365'-p+[]:PASSWORD: ' \
366'--password=[]:PASSWORD: ' \
367'-e+[]:EMAIL: ' \
368'--email=[]:EMAIL: ' \
369'-h[Print help]' \
370'--help[Print help]' \
371&& ret=0
372;;
373(logout)
374_arguments "${_arguments_options[@]}" \
375'-h[Print help]' \
376'--help[Print help]' \
377&& ret=0
378;;
379(delete)
380_arguments "${_arguments_options[@]}" \
381'-h[Print help]' \
382'--help[Print help]' \
383&& ret=0
384;;
385(help)
386_arguments "${_arguments_options[@]}" \
387":: :_atuin__account__help_commands" \
388"*::: :->help" \
389&& ret=0
390
391 case $state in
392 (help)
393 words=($line[1] "${words[@]}")
394 (( CURRENT += 1 ))
395 curcontext="${curcontext%:*:*}:atuin-account-help-command-$line[1]:"
396 case $line[1] in
397 (login)
398_arguments "${_arguments_options[@]}" \
399&& ret=0
400;;
401(register)
402_arguments "${_arguments_options[@]}" \
403&& ret=0
404;;
405(logout)
406_arguments "${_arguments_options[@]}" \
407&& ret=0
408;;
409(delete)
410_arguments "${_arguments_options[@]}" \
411&& ret=0
412;;
413(help)
414_arguments "${_arguments_options[@]}" \
415&& ret=0
416;;
417 esac
418 ;;
419esac
420;;
421 esac
422 ;;
423esac
424;;
425(server)
426_arguments "${_arguments_options[@]}" \
427'-h[Print help]' \
428'--help[Print help]' \
429":: :_atuin__server_commands" \
430"*::: :->server" \
431&& ret=0
432
433 case $state in
434 (server)
435 words=($line[1] "${words[@]}")
436 (( CURRENT += 1 ))
437 curcontext="${curcontext%:*:*}:atuin-server-command-$line[1]:"
438 case $line[1] in
439 (start)
440_arguments "${_arguments_options[@]}" \
441'--host=[The host address to bind]:HOST: ' \
442'-p+[The port to bind]:PORT: ' \
443'--port=[The port to bind]:PORT: ' \
444'-h[Print help]' \
445'--help[Print help]' \
446&& ret=0
447;;
448(help)
449_arguments "${_arguments_options[@]}" \
450":: :_atuin__server__help_commands" \
451"*::: :->help" \
452&& ret=0
453
454 case $state in
455 (help)
456 words=($line[1] "${words[@]}")
457 (( CURRENT += 1 ))
458 curcontext="${curcontext%:*:*}:atuin-server-help-command-$line[1]:"
459 case $line[1] in
460 (start)
461_arguments "${_arguments_options[@]}" \
462&& ret=0
463;;
464(help)
465_arguments "${_arguments_options[@]}" \
466&& ret=0
467;;
468 esac
469 ;;
470esac
471;;
472 esac
473 ;;
474esac
475;;
476(init)
477_arguments "${_arguments_options[@]}" \
478'--disable-ctrl-r[Disable the binding of CTRL-R to atuin]' \
479'--disable-up-arrow[Disable the binding of the Up Arrow key to atuin]' \
480'-h[Print help (see more with '\''--help'\'')]' \
481'--help[Print help (see more with '\''--help'\'')]' \
482':shell:((zsh\:"Zsh setup"
483bash\:"Bash setup"
484fish\:"Fish setup"
485nu\:"Nu setup"))' \
486&& ret=0
487;;
488(uuid)
489_arguments "${_arguments_options[@]}" \
490'-h[Print help]' \
491'--help[Print help]' \
492&& ret=0
493;;
494(contributors)
495_arguments "${_arguments_options[@]}" \
496'-h[Print help]' \
497'--help[Print help]' \
498&& ret=0
499;;
500(gen-completions)
501_arguments "${_arguments_options[@]}" \
502'-s+[Set the shell for generating completions]:SHELL:(bash elvish fish powershell zsh)' \
503'--shell=[Set the shell for generating completions]:SHELL:(bash elvish fish powershell zsh)' \
504'-o+[Set the output directory]:OUT_DIR: ' \
505'--out-dir=[Set the output directory]:OUT_DIR: ' \
506'-h[Print help]' \
507'--help[Print help]' \
508&& ret=0
509;;
510(help)
511_arguments "${_arguments_options[@]}" \
512":: :_atuin__help_commands" \
513"*::: :->help" \
514&& ret=0
515
516 case $state in
517 (help)
518 words=($line[1] "${words[@]}")
519 (( CURRENT += 1 ))
520 curcontext="${curcontext%:*:*}:atuin-help-command-$line[1]:"
521 case $line[1] in
522 (history)
523_arguments "${_arguments_options[@]}" \
524":: :_atuin__help__history_commands" \
525"*::: :->history" \
526&& ret=0
527
528 case $state in
529 (history)
530 words=($line[1] "${words[@]}")
531 (( CURRENT += 1 ))
532 curcontext="${curcontext%:*:*}:atuin-help-history-command-$line[1]:"
533 case $line[1] in
534 (start)
535_arguments "${_arguments_options[@]}" \
536&& ret=0
537;;
538(end)
539_arguments "${_arguments_options[@]}" \
540&& ret=0
541;;
542(list)
543_arguments "${_arguments_options[@]}" \
544&& ret=0
545;;
546(last)
547_arguments "${_arguments_options[@]}" \
548&& ret=0
549;;
550 esac
551 ;;
552esac
553;;
554(import)
555_arguments "${_arguments_options[@]}" \
556":: :_atuin__help__import_commands" \
557"*::: :->import" \
558&& ret=0
559
560 case $state in
561 (import)
562 words=($line[1] "${words[@]}")
563 (( CURRENT += 1 ))
564 curcontext="${curcontext%:*:*}:atuin-help-import-command-$line[1]:"
565 case $line[1] in
566 (auto)
567_arguments "${_arguments_options[@]}" \
568&& ret=0
569;;
570(zsh)
571_arguments "${_arguments_options[@]}" \
572&& ret=0
573;;
574(zsh-hist-db)
575_arguments "${_arguments_options[@]}" \
576&& ret=0
577;;
578(bash)
579_arguments "${_arguments_options[@]}" \
580&& ret=0
581;;
582(resh)
583_arguments "${_arguments_options[@]}" \
584&& ret=0
585;;
586(fish)
587_arguments "${_arguments_options[@]}" \
588&& ret=0
589;;
590(nu)
591_arguments "${_arguments_options[@]}" \
592&& ret=0
593;;
594(nu-hist-db)
595_arguments "${_arguments_options[@]}" \
596&& ret=0
597;;
598 esac
599 ;;
600esac
601;;
602(stats)
603_arguments "${_arguments_options[@]}" \
604&& ret=0
605;;
606(search)
607_arguments "${_arguments_options[@]}" \
608&& ret=0
609;;
610(sync)
611_arguments "${_arguments_options[@]}" \
612&& ret=0
613;;
614(login)
615_arguments "${_arguments_options[@]}" \
616&& ret=0
617;;
618(logout)
619_arguments "${_arguments_options[@]}" \
620&& ret=0
621;;
622(register)
623_arguments "${_arguments_options[@]}" \
624&& ret=0
625;;
626(key)
627_arguments "${_arguments_options[@]}" \
628&& ret=0
629;;
630(status)
631_arguments "${_arguments_options[@]}" \
632&& ret=0
633;;
634(account)
635_arguments "${_arguments_options[@]}" \
636":: :_atuin__help__account_commands" \
637"*::: :->account" \
638&& ret=0
639
640 case $state in
641 (account)
642 words=($line[1] "${words[@]}")
643 (( CURRENT += 1 ))
644 curcontext="${curcontext%:*:*}:atuin-help-account-command-$line[1]:"
645 case $line[1] in
646 (login)
647_arguments "${_arguments_options[@]}" \
648&& ret=0
649;;
650(register)
651_arguments "${_arguments_options[@]}" \
652&& ret=0
653;;
654(logout)
655_arguments "${_arguments_options[@]}" \
656&& ret=0
657;;
658(delete)
659_arguments "${_arguments_options[@]}" \
660&& ret=0
661;;
662 esac
663 ;;
664esac
665;;
666(server)
667_arguments "${_arguments_options[@]}" \
668":: :_atuin__help__server_commands" \
669"*::: :->server" \
670&& ret=0
671
672 case $state in
673 (server)
674 words=($line[1] "${words[@]}")
675 (( CURRENT += 1 ))
676 curcontext="${curcontext%:*:*}:atuin-help-server-command-$line[1]:"
677 case $line[1] in
678 (start)
679_arguments "${_arguments_options[@]}" \
680&& ret=0
681;;
682 esac
683 ;;
684esac
685;;
686(init)
687_arguments "${_arguments_options[@]}" \
688&& ret=0
689;;
690(uuid)
691_arguments "${_arguments_options[@]}" \
692&& ret=0
693;;
694(contributors)
695_arguments "${_arguments_options[@]}" \
696&& ret=0
697;;
698(gen-completions)
699_arguments "${_arguments_options[@]}" \
700&& ret=0
701;;
702(help)
703_arguments "${_arguments_options[@]}" \
704&& ret=0
705;;
706 esac
707 ;;
708esac
709;;
710 esac
711 ;;
712esac
713}
714
715(( $+functions[_atuin_commands] )) ||
716_atuin_commands() {
717 local commands; commands=(
718'history:Manipulate shell history' \
719'import:Import shell history from file' \
720'stats:Calculate statistics for your history' \
721'search:Interactive history search' \
722'sync:Sync with the configured server' \
723'login:Login to the configured server' \
724'logout:Log out' \
725'register:Register with the configured server' \
726'key:Print the encryption key for transfer to another machine' \
727'status:' \
728'account:' \
729'server:Start an atuin server' \
730'init:Output shell setup' \
731'uuid:Generate a UUID' \
732'contributors:' \
733'gen-completions:Generate shell completions' \
734'help:Print this message or the help of the given subcommand(s)' \
735 )
736 _describe -t commands 'atuin commands' commands "$@"
737}
738(( $+functions[_atuin__account_commands] )) ||
739_atuin__account_commands() {
740 local commands; commands=(
741'login:Login to the configured server' \
742'register:' \
743'logout:Log out' \
744'delete:' \
745'help:Print this message or the help of the given subcommand(s)' \
746 )
747 _describe -t commands 'atuin account commands' commands "$@"
748}
749(( $+functions[_atuin__help__account_commands] )) ||
750_atuin__help__account_commands() {
751 local commands; commands=(
752'login:Login to the configured server' \
753'register:' \
754'logout:Log out' \
755'delete:' \
756 )
757 _describe -t commands 'atuin help account commands' commands "$@"
758}
759(( $+functions[_atuin__help__import__auto_commands] )) ||
760_atuin__help__import__auto_commands() {
761 local commands; commands=()
762 _describe -t commands 'atuin help import auto commands' commands "$@"
763}
764(( $+functions[_atuin__import__auto_commands] )) ||
765_atuin__import__auto_commands() {
766 local commands; commands=()
767 _describe -t commands 'atuin import auto commands' commands "$@"
768}
769(( $+functions[_atuin__import__help__auto_commands] )) ||
770_atuin__import__help__auto_commands() {
771 local commands; commands=()
772 _describe -t commands 'atuin import help auto commands' commands "$@"
773}
774(( $+functions[_atuin__help__import__bash_commands] )) ||
775_atuin__help__import__bash_commands() {
776 local commands; commands=()
777 _describe -t commands 'atuin help import bash commands' commands "$@"
778}
779(( $+functions[_atuin__import__bash_commands] )) ||
780_atuin__import__bash_commands() {
781 local commands; commands=()
782 _describe -t commands 'atuin import bash commands' commands "$@"
783}
784(( $+functions[_atuin__import__help__bash_commands] )) ||
785_atuin__import__help__bash_commands() {
786 local commands; commands=()
787 _describe -t commands 'atuin import help bash commands' commands "$@"
788}
789(( $+functions[_atuin__contributors_commands] )) ||
790_atuin__contributors_commands() {
791 local commands; commands=()
792 _describe -t commands 'atuin contributors commands' commands "$@"
793}
794(( $+functions[_atuin__help__contributors_commands] )) ||
795_atuin__help__contributors_commands() {
796 local commands; commands=()
797 _describe -t commands 'atuin help contributors commands' commands "$@"
798}
799(( $+functions[_atuin__account__delete_commands] )) ||
800_atuin__account__delete_commands() {
801 local commands; commands=()
802 _describe -t commands 'atuin account delete commands' commands "$@"
803}
804(( $+functions[_atuin__account__help__delete_commands] )) ||
805_atuin__account__help__delete_commands() {
806 local commands; commands=()
807 _describe -t commands 'atuin account help delete commands' commands "$@"
808}
809(( $+functions[_atuin__help__account__delete_commands] )) ||
810_atuin__help__account__delete_commands() {
811 local commands; commands=()
812 _describe -t commands 'atuin help account delete commands' commands "$@"
813}
814(( $+functions[_atuin__help__history__end_commands] )) ||
815_atuin__help__history__end_commands() {
816 local commands; commands=()
817 _describe -t commands 'atuin help history end commands' commands "$@"
818}
819(( $+functions[_atuin__history__end_commands] )) ||
820_atuin__history__end_commands() {
821 local commands; commands=()
822 _describe -t commands 'atuin history end commands' commands "$@"
823}
824(( $+functions[_atuin__history__help__end_commands] )) ||
825_atuin__history__help__end_commands() {
826 local commands; commands=()
827 _describe -t commands 'atuin history help end commands' commands "$@"
828}
829(( $+functions[_atuin__help__import__fish_commands] )) ||
830_atuin__help__import__fish_commands() {
831 local commands; commands=()
832 _describe -t commands 'atuin help import fish commands' commands "$@"
833}
834(( $+functions[_atuin__import__fish_commands] )) ||
835_atuin__import__fish_commands() {
836 local commands; commands=()
837 _describe -t commands 'atuin import fish commands' commands "$@"
838}
839(( $+functions[_atuin__import__help__fish_commands] )) ||
840_atuin__import__help__fish_commands() {
841 local commands; commands=()
842 _describe -t commands 'atuin import help fish commands' commands "$@"
843}
844(( $+functions[_atuin__gen-completions_commands] )) ||
845_atuin__gen-completions_commands() {
846 local commands; commands=()
847 _describe -t commands 'atuin gen-completions commands' commands "$@"
848}
849(( $+functions[_atuin__help__gen-completions_commands] )) ||
850_atuin__help__gen-completions_commands() {
851 local commands; commands=()
852 _describe -t commands 'atuin help gen-completions commands' commands "$@"
853}
854(( $+functions[_atuin__account__help_commands] )) ||
855_atuin__account__help_commands() {
856 local commands; commands=(
857'login:Login to the configured server' \
858'register:' \
859'logout:Log out' \
860'delete:' \
861'help:Print this message or the help of the given subcommand(s)' \
862 )
863 _describe -t commands 'atuin account help commands' commands "$@"
864}
865(( $+functions[_atuin__account__help__help_commands] )) ||
866_atuin__account__help__help_commands() {
867 local commands; commands=()
868 _describe -t commands 'atuin account help help commands' commands "$@"
869}
870(( $+functions[_atuin__help_commands] )) ||
871_atuin__help_commands() {
872 local commands; commands=(
873'history:Manipulate shell history' \
874'import:Import shell history from file' \
875'stats:Calculate statistics for your history' \
876'search:Interactive history search' \
877'sync:Sync with the configured server' \
878'login:Login to the configured server' \
879'logout:Log out' \
880'register:Register with the configured server' \
881'key:Print the encryption key for transfer to another machine' \
882'status:' \
883'account:' \
884'server:Start an atuin server' \
885'init:Output shell setup' \
886'uuid:Generate a UUID' \
887'contributors:' \
888'gen-completions:Generate shell completions' \
889'help:Print this message or the help of the given subcommand(s)' \
890 )
891 _describe -t commands 'atuin help commands' commands "$@"
892}
893(( $+functions[_atuin__help__help_commands] )) ||
894_atuin__help__help_commands() {
895 local commands; commands=()
896 _describe -t commands 'atuin help help commands' commands "$@"
897}
898(( $+functions[_atuin__history__help_commands] )) ||
899_atuin__history__help_commands() {
900 local commands; commands=(
901'start:Begins a new command in the history' \
902'end:Finishes a new command in the history (adds time, exit code)' \
903'list:List all items in history' \
904'last:Get the last command ran' \
905'help:Print this message or the help of the given subcommand(s)' \
906 )
907 _describe -t commands 'atuin history help commands' commands "$@"
908}
909(( $+functions[_atuin__history__help__help_commands] )) ||
910_atuin__history__help__help_commands() {
911 local commands; commands=()
912 _describe -t commands 'atuin history help help commands' commands "$@"
913}
914(( $+functions[_atuin__import__help_commands] )) ||
915_atuin__import__help_commands() {
916 local commands; commands=(
917'auto:Import history for the current shell' \
918'zsh:Import history from the zsh history file' \
919'zsh-hist-db:Import history from the zsh history file' \
920'bash:Import history from the bash history file' \
921'resh:Import history from the resh history file' \
922'fish:Import history from the fish history file' \
923'nu:Import history from the nu history file' \
924'nu-hist-db:Import history from the nu history file' \
925'help:Print this message or the help of the given subcommand(s)' \
926 )
927 _describe -t commands 'atuin import help commands' commands "$@"
928}
929(( $+functions[_atuin__import__help__help_commands] )) ||
930_atuin__import__help__help_commands() {
931 local commands; commands=()
932 _describe -t commands 'atuin import help help commands' commands "$@"
933}
934(( $+functions[_atuin__server__help_commands] )) ||
935_atuin__server__help_commands() {
936 local commands; commands=(
937'start:Start the server' \
938'help:Print this message or the help of the given subcommand(s)' \
939 )
940 _describe -t commands 'atuin server help commands' commands "$@"
941}
942(( $+functions[_atuin__server__help__help_commands] )) ||
943_atuin__server__help__help_commands() {
944 local commands; commands=()
945 _describe -t commands 'atuin server help help commands' commands "$@"
946}
947(( $+functions[_atuin__help__history_commands] )) ||
948_atuin__help__history_commands() {
949 local commands; commands=(
950'start:Begins a new command in the history' \
951'end:Finishes a new command in the history (adds time, exit code)' \
952'list:List all items in history' \
953'last:Get the last command ran' \
954 )
955 _describe -t commands 'atuin help history commands' commands "$@"
956}
957(( $+functions[_atuin__history_commands] )) ||
958_atuin__history_commands() {
959 local commands; commands=(
960'start:Begins a new command in the history' \
961'end:Finishes a new command in the history (adds time, exit code)' \
962'list:List all items in history' \
963'last:Get the last command ran' \
964'help:Print this message or the help of the given subcommand(s)' \
965 )
966 _describe -t commands 'atuin history commands' commands "$@"
967}
968(( $+functions[_atuin__help__import_commands] )) ||
969_atuin__help__import_commands() {
970 local commands; commands=(
971'auto:Import history for the current shell' \
972'zsh:Import history from the zsh history file' \
973'zsh-hist-db:Import history from the zsh history file' \
974'bash:Import history from the bash history file' \
975'resh:Import history from the resh history file' \
976'fish:Import history from the fish history file' \
977'nu:Import history from the nu history file' \
978'nu-hist-db:Import history from the nu history file' \
979 )
980 _describe -t commands 'atuin help import commands' commands "$@"
981}
982(( $+functions[_atuin__import_commands] )) ||
983_atuin__import_commands() {
984 local commands; commands=(
985'auto:Import history for the current shell' \
986'zsh:Import history from the zsh history file' \
987'zsh-hist-db:Import history from the zsh history file' \
988'bash:Import history from the bash history file' \
989'resh:Import history from the resh history file' \
990'fish:Import history from the fish history file' \
991'nu:Import history from the nu history file' \
992'nu-hist-db:Import history from the nu history file' \
993'help:Print this message or the help of the given subcommand(s)' \
994 )
995 _describe -t commands 'atuin import commands' commands "$@"
996}
997(( $+functions[_atuin__help__init_commands] )) ||
998_atuin__help__init_commands() {
999 local commands; commands=()
1000 _describe -t commands 'atuin help init commands' commands "$@"
1001}
1002(( $+functions[_atuin__init_commands] )) ||
1003_atuin__init_commands() {
1004 local commands; commands=()
1005 _describe -t commands 'atuin init commands' commands "$@"
1006}
1007(( $+functions[_atuin__help__key_commands] )) ||
1008_atuin__help__key_commands() {
1009 local commands; commands=()
1010 _describe -t commands 'atuin help key commands' commands "$@"
1011}
1012(( $+functions[_atuin__key_commands] )) ||
1013_atuin__key_commands() {
1014 local commands; commands=()
1015 _describe -t commands 'atuin key commands' commands "$@"
1016}
1017(( $+functions[_atuin__help__history__last_commands] )) ||
1018_atuin__help__history__last_commands() {
1019 local commands; commands=()
1020 _describe -t commands 'atuin help history last commands' commands "$@"
1021}
1022(( $+functions[_atuin__history__help__last_commands] )) ||
1023_atuin__history__help__last_commands() {
1024 local commands; commands=()
1025 _describe -t commands 'atuin history help last commands' commands "$@"
1026}
1027(( $+functions[_atuin__history__last_commands] )) ||
1028_atuin__history__last_commands() {
1029 local commands; commands=()
1030 _describe -t commands 'atuin history last commands' commands "$@"
1031}
1032(( $+functions[_atuin__help__history__list_commands] )) ||
1033_atuin__help__history__list_commands() {
1034 local commands; commands=()
1035 _describe -t commands 'atuin help history list commands' commands "$@"
1036}
1037(( $+functions[_atuin__history__help__list_commands] )) ||
1038_atuin__history__help__list_commands() {
1039 local commands; commands=()
1040 _describe -t commands 'atuin history help list commands' commands "$@"
1041}
1042(( $+functions[_atuin__history__list_commands] )) ||
1043_atuin__history__list_commands() {
1044 local commands; commands=()
1045 _describe -t commands 'atuin history list commands' commands "$@"
1046}
1047(( $+functions[_atuin__account__help__login_commands] )) ||
1048_atuin__account__help__login_commands() {
1049 local commands; commands=()
1050 _describe -t commands 'atuin account help login commands' commands "$@"
1051}
1052(( $+functions[_atuin__account__login_commands] )) ||
1053_atuin__account__login_commands() {
1054 local commands; commands=()
1055 _describe -t commands 'atuin account login commands' commands "$@"
1056}
1057(( $+functions[_atuin__help__account__login_commands] )) ||
1058_atuin__help__account__login_commands() {
1059 local commands; commands=()
1060 _describe -t commands 'atuin help account login commands' commands "$@"
1061}
1062(( $+functions[_atuin__help__login_commands] )) ||
1063_atuin__help__login_commands() {
1064 local commands; commands=()
1065 _describe -t commands 'atuin help login commands' commands "$@"
1066}
1067(( $+functions[_atuin__login_commands] )) ||
1068_atuin__login_commands() {
1069 local commands; commands=()
1070 _describe -t commands 'atuin login commands' commands "$@"
1071}
1072(( $+functions[_atuin__account__help__logout_commands] )) ||
1073_atuin__account__help__logout_commands() {
1074 local commands; commands=()
1075 _describe -t commands 'atuin account help logout commands' commands "$@"
1076}
1077(( $+functions[_atuin__account__logout_commands] )) ||
1078_atuin__account__logout_commands() {
1079 local commands; commands=()
1080 _describe -t commands 'atuin account logout commands' commands "$@"
1081}
1082(( $+functions[_atuin__help__account__logout_commands] )) ||
1083_atuin__help__account__logout_commands() {
1084 local commands; commands=()
1085 _describe -t commands 'atuin help account logout commands' commands "$@"
1086}
1087(( $+functions[_atuin__help__logout_commands] )) ||
1088_atuin__help__logout_commands() {
1089 local commands; commands=()
1090 _describe -t commands 'atuin help logout commands' commands "$@"
1091}
1092(( $+functions[_atuin__logout_commands] )) ||
1093_atuin__logout_commands() {
1094 local commands; commands=()
1095 _describe -t commands 'atuin logout commands' commands "$@"
1096}
1097(( $+functions[_atuin__help__import__nu_commands] )) ||
1098_atuin__help__import__nu_commands() {
1099 local commands; commands=()
1100 _describe -t commands 'atuin help import nu commands' commands "$@"
1101}
1102(( $+functions[_atuin__import__help__nu_commands] )) ||
1103_atuin__import__help__nu_commands() {
1104 local commands; commands=()
1105 _describe -t commands 'atuin import help nu commands' commands "$@"
1106}
1107(( $+functions[_atuin__import__nu_commands] )) ||
1108_atuin__import__nu_commands() {
1109 local commands; commands=()
1110 _describe -t commands 'atuin import nu commands' commands "$@"
1111}
1112(( $+functions[_atuin__help__import__nu-hist-db_commands] )) ||
1113_atuin__help__import__nu-hist-db_commands() {
1114 local commands; commands=()
1115 _describe -t commands 'atuin help import nu-hist-db commands' commands "$@"
1116}
1117(( $+functions[_atuin__import__help__nu-hist-db_commands] )) ||
1118_atuin__import__help__nu-hist-db_commands() {
1119 local commands; commands=()
1120 _describe -t commands 'atuin import help nu-hist-db commands' commands "$@"
1121}
1122(( $+functions[_atuin__import__nu-hist-db_commands] )) ||
1123_atuin__import__nu-hist-db_commands() {
1124 local commands; commands=()
1125 _describe -t commands 'atuin import nu-hist-db commands' commands "$@"
1126}
1127(( $+functions[_atuin__account__help__register_commands] )) ||
1128_atuin__account__help__register_commands() {
1129 local commands; commands=()
1130 _describe -t commands 'atuin account help register commands' commands "$@"
1131}
1132(( $+functions[_atuin__account__register_commands] )) ||
1133_atuin__account__register_commands() {
1134 local commands; commands=()
1135 _describe -t commands 'atuin account register commands' commands "$@"
1136}
1137(( $+functions[_atuin__help__account__register_commands] )) ||
1138_atuin__help__account__register_commands() {
1139 local commands; commands=()
1140 _describe -t commands 'atuin help account register commands' commands "$@"
1141}
1142(( $+functions[_atuin__help__register_commands] )) ||
1143_atuin__help__register_commands() {
1144 local commands; commands=()
1145 _describe -t commands 'atuin help register commands' commands "$@"
1146}
1147(( $+functions[_atuin__register_commands] )) ||
1148_atuin__register_commands() {
1149 local commands; commands=()
1150 _describe -t commands 'atuin register commands' commands "$@"
1151}
1152(( $+functions[_atuin__help__import__resh_commands] )) ||
1153_atuin__help__import__resh_commands() {
1154 local commands; commands=()
1155 _describe -t commands 'atuin help import resh commands' commands "$@"
1156}
1157(( $+functions[_atuin__import__help__resh_commands] )) ||
1158_atuin__import__help__resh_commands() {
1159 local commands; commands=()
1160 _describe -t commands 'atuin import help resh commands' commands "$@"
1161}
1162(( $+functions[_atuin__import__resh_commands] )) ||
1163_atuin__import__resh_commands() {
1164 local commands; commands=()
1165 _describe -t commands 'atuin import resh commands' commands "$@"
1166}
1167(( $+functions[_atuin__help__search_commands] )) ||
1168_atuin__help__search_commands() {
1169 local commands; commands=()
1170 _describe -t commands 'atuin help search commands' commands "$@"
1171}
1172(( $+functions[_atuin__search_commands] )) ||
1173_atuin__search_commands() {
1174 local commands; commands=()
1175 _describe -t commands 'atuin search commands' commands "$@"
1176}
1177(( $+functions[_atuin__help__server_commands] )) ||
1178_atuin__help__server_commands() {
1179 local commands; commands=(
1180'start:Start the server' \
1181 )
1182 _describe -t commands 'atuin help server commands' commands "$@"
1183}
1184(( $+functions[_atuin__server_commands] )) ||
1185_atuin__server_commands() {
1186 local commands; commands=(
1187'start:Start the server' \
1188'help:Print this message or the help of the given subcommand(s)' \
1189 )
1190 _describe -t commands 'atuin server commands' commands "$@"
1191}
1192(( $+functions[_atuin__help__history__start_commands] )) ||
1193_atuin__help__history__start_commands() {
1194 local commands; commands=()
1195 _describe -t commands 'atuin help history start commands' commands "$@"
1196}
1197(( $+functions[_atuin__help__server__start_commands] )) ||
1198_atuin__help__server__start_commands() {
1199 local commands; commands=()
1200 _describe -t commands 'atuin help server start commands' commands "$@"
1201}
1202(( $+functions[_atuin__history__help__start_commands] )) ||
1203_atuin__history__help__start_commands() {
1204 local commands; commands=()
1205 _describe -t commands 'atuin history help start commands' commands "$@"
1206}
1207(( $+functions[_atuin__history__start_commands] )) ||
1208_atuin__history__start_commands() {
1209 local commands; commands=()
1210 _describe -t commands 'atuin history start commands' commands "$@"
1211}
1212(( $+functions[_atuin__server__help__start_commands] )) ||
1213_atuin__server__help__start_commands() {
1214 local commands; commands=()
1215 _describe -t commands 'atuin server help start commands' commands "$@"
1216}
1217(( $+functions[_atuin__server__start_commands] )) ||
1218_atuin__server__start_commands() {
1219 local commands; commands=()
1220 _describe -t commands 'atuin server start commands' commands "$@"
1221}
1222(( $+functions[_atuin__help__stats_commands] )) ||
1223_atuin__help__stats_commands() {
1224 local commands; commands=()
1225 _describe -t commands 'atuin help stats commands' commands "$@"
1226}
1227(( $+functions[_atuin__stats_commands] )) ||
1228_atuin__stats_commands() {
1229 local commands; commands=()
1230 _describe -t commands 'atuin stats commands' commands "$@"
1231}
1232(( $+functions[_atuin__help__status_commands] )) ||
1233_atuin__help__status_commands() {
1234 local commands; commands=()
1235 _describe -t commands 'atuin help status commands' commands "$@"
1236}
1237(( $+functions[_atuin__status_commands] )) ||
1238_atuin__status_commands() {
1239 local commands; commands=()
1240 _describe -t commands 'atuin status commands' commands "$@"
1241}
1242(( $+functions[_atuin__help__sync_commands] )) ||
1243_atuin__help__sync_commands() {
1244 local commands; commands=()
1245 _describe -t commands 'atuin help sync commands' commands "$@"
1246}
1247(( $+functions[_atuin__sync_commands] )) ||
1248_atuin__sync_commands() {
1249 local commands; commands=()
1250 _describe -t commands 'atuin sync commands' commands "$@"
1251}
1252(( $+functions[_atuin__help__uuid_commands] )) ||
1253_atuin__help__uuid_commands() {
1254 local commands; commands=()
1255 _describe -t commands 'atuin help uuid commands' commands "$@"
1256}
1257(( $+functions[_atuin__uuid_commands] )) ||
1258_atuin__uuid_commands() {
1259 local commands; commands=()
1260 _describe -t commands 'atuin uuid commands' commands "$@"
1261}
1262(( $+functions[_atuin__help__import__zsh_commands] )) ||
1263_atuin__help__import__zsh_commands() {
1264 local commands; commands=()
1265 _describe -t commands 'atuin help import zsh commands' commands "$@"
1266}
1267(( $+functions[_atuin__import__help__zsh_commands] )) ||
1268_atuin__import__help__zsh_commands() {
1269 local commands; commands=()
1270 _describe -t commands 'atuin import help zsh commands' commands "$@"
1271}
1272(( $+functions[_atuin__import__zsh_commands] )) ||
1273_atuin__import__zsh_commands() {
1274 local commands; commands=()
1275 _describe -t commands 'atuin import zsh commands' commands "$@"
1276}
1277(( $+functions[_atuin__help__import__zsh-hist-db_commands] )) ||
1278_atuin__help__import__zsh-hist-db_commands() {
1279 local commands; commands=()
1280 _describe -t commands 'atuin help import zsh-hist-db commands' commands "$@"
1281}
1282(( $+functions[_atuin__import__help__zsh-hist-db_commands] )) ||
1283_atuin__import__help__zsh-hist-db_commands() {
1284 local commands; commands=()
1285 _describe -t commands 'atuin import help zsh-hist-db commands' commands "$@"
1286}
1287(( $+functions[_atuin__import__zsh-hist-db_commands] )) ||
1288_atuin__import__zsh-hist-db_commands() {
1289 local commands; commands=()
1290 _describe -t commands 'atuin import zsh-hist-db commands' commands "$@"
1291}
1292
1293if [ "$funcstack[1]" = "_atuin" ]; then
1294 _atuin "$@"
1295else
1296 compdef _atuin atuin
1297fi