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.
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
.
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)
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 fornix-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
)