Skip to content

Commit b96ae6d

Browse files
iloveitalydim-an
authored andcommitted
zinit example
1 parent aff5f70 commit b96ae6d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.org

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ auto-completions for your shell.
1212
for your OS and put it into your =$PATH=.
1313

1414
Then you need to edit your init script and add few lines.
15-
15+
1616
** Bash
1717
Add to =~/.bashrc=
1818
#+BEGIN_SRC
@@ -24,6 +24,11 @@ auto-completions for your shell.
2424
#+BEGIN_SRC
2525
source <(cod init $$ zsh)
2626
#+END_SRC
27+
Or, use a plugin manager like zinit:
28+
#+BEGIN_SRC
29+
zinit wait lucid for \
30+
dim-an/cod
31+
#+END_SRC
2732

2833
** Fish
2934
Add to =~/.config/fish/config.fish=
@@ -43,7 +48,7 @@ auto-completions for your shell.
4348

4449
=cod= works with latest version of =fish= (tested: =v3.1.2") on Linux
4550
(I didn't have a chance to test it on macOS).
46-
51+
4752

4853
* Build
4954
[[https://golang.org/dl/][Go v1.16]] is recommended.
@@ -95,7 +100,7 @@ auto-completions for your shell.
95100
** How cod parses help output
96101
=cod= has generic parser that works with most of help pages and
97102
recognizes flags (starting with =-=) but doesn't recognize subcommands.
98-
103+
99104
It also has a special parser tuned for
100105
[[https://docs.python.org/library/argparse.html][python argparse library]]
101106
that recognizes flags and subcommands.

0 commit comments

Comments
 (0)