Skip to content

Thesola10/zsh-comma-assistant

Repository files navigation

zsh-comma-assistant

Tighter integration around the comma utility, so you'll (almost) never get a "command not found" error ever again!

This plugin consists of two parts: a command not found handler, and a syntax highlight addon.

See it in action! on asciinema

Dependencies

This plugin requires nix-index to be installed and available in PATH, as well as for the nix-index database to have already been built. It also requires comma (duh) to be installed in PATH.

Syntax highlight

The syntax highlight addon included in this plugin requires zsh-syntax-highlighting.

The highlight addon can be enabled by adding it to the active highlighters:

ZSH_HIGHLIGHT_HIGHLIGHTERS=(main comma)

Configuration

Currently, the following environment variables can be configured to control the behavior of this plugin:

  • $COMMA_INDEX_PATH is the path to the database directory for nix-index. (default: $XDG_CACHE_HOME/nix-index)
  • $COMMA_INDEX_LIST_PATH is the path where the plugin should store its auto-generated available commands list. (default: $COMMA_INDEX_PATH/cmds)
  • ${ZSH_HIGHLIGHT_STYLES[comma:cmd]} is the style to use to highlight a command available in Nix. (default: fg=blue)

About

Supercharge your zsh with the true power of Nix!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published