A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dim-an/cod/commit/953117d2174a8853ad3b8d404085ddc43b8ba86c below:

Update readme · dim-an/cod@953117d · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+20

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+20

-1

lines changed Original file line number Diff line number Diff line change

@@ -8,7 +8,8 @@ auto-completions for your shell.

8 8

[[https://asciinema.org/a/h0SrrNvZVcqoSM4DNyEUrGtQh][file:https://asciinema.org/a/h0SrrNvZVcqoSM4DNyEUrGtQh.svg]]

9 9 10 10

* Install

11 -

Download or build =cod= binary for your OS and put it into your =$PATH=.

11 +

[[https://github.com/dim-an/cod/releases][Download]] or [[#Build][build]] =cod= binary

12 +

for your OS and put it into your =$PATH=.

12 13 13 14

Then you need to edit your init script and add few lines.

14 15

@@ -24,6 +25,16 @@ auto-completions for your shell.

24 25

source <(cod init $$ zsh)

25 26

#+END_SRC

26 27 28 +

* Supported shells and operating systems

29 +

=cod= is known to work with latest version of =zsh= (tested: =v5.5.1= and

30 +

=5.7.1=) on macOS and Linux.

31 + 32 +

=cod= also works with with latest version of =bash= (tested: =4.4.20= and

33 +

=v5.0.11=) on Linux.

34 + 35 +

Note that default =bash= that is bundled with macOS is too old and =cod=

36 +

doesn't support it.

37 + 27 38

* Build

28 39

[[https://golang.org/dl/][Go v1.13]] is required.

29 40

@@ -65,6 +76,14 @@ auto-completions for your shell.

65 76

This info will be used to update command if required (check:

66 77

=cod help update=).

67 78 79 +

** How cod parses help output

80 +

=cod= has generic parser that works with most of help pages and

81 +

recognizes flags (starting with =-=) but doesn't recognize subcommands.

82 + 83 +

It also has a special parser tuned for

84 +

[[https://docs.python.org/library/argparse.html][python argparse library]]

85 +

that recognizes flags and subcommands.

86 + 68 87

* Configuration

69 88

Cod will search config in =$XDG_CONFIG_HOME/cod/config.toml= file

70 89

(default: =~/.config/cod/config.toml=).

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4