{"repo":"dim-an/cod","free":true,"listed":false,"github":"https://github.com/dim-an/cod","clone":"git clone https://github.com/dim-an/cod.git","description":"cod is a completion daemon for bash/fish/zsh","language":"Go","stars":552,"topics":["shell","completion","zsh","bash","fish"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"Cod is a completion daemon for , , and . It detects usage of commands, parses their output, and generates auto-completions for your shell. Install You can either download or build the binary for your OS and put it into your . After that, you will need to edit your init script (e.g. , , ) and add a few lines for the daemon to work correctly. Bash Add the following to your Zsh Make sure completion system is initialized. Add the following to your Or, you can use a plugin manager like zinit: Initializing zsh completion system cod requires initialized completion system. In many cases it is already the case (e.g. if you are using oh-my-zsh or similar framework). You can check whether your completion system is already initilized by using type compdef command: If you found that you need to initialize completion system you can do this by: - calling compinit function in your .zshrc before initializing cod itself, or - executing compinstall command from your shell, it will modify .zshrc file for you. Also check zsh documentation. Fish Add the following to Fig As an alternative, you can also install with Fig in , , or with just one click. Supported shells and operating systems - zsh is known to work with latest version of (tested: and ) on macOS and Linux. - bash also works with with latest version of (tested: and ) on Linux. Note that default that is bundled with macOS is too old and doesn't support it. - fish works with latest version of (tested: ) on Linux (I didn't have a chance to t","default_branch":null,"files":null,"tree":[],"storefront":"/r/dim-an","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dim-an/cod/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}