tre is a zsh plugin that makes using
tre
easier.
Add this to your zinit config (.zshrc):
zinit light redxtech/zsh-tre
# it also works with turbo mode:
zinit ice wait lucid
zinit load redxtech/zsh-tre
Install it with your favourite zsh package manager, or clone it directly to your
$ZSH_CUSTOM/plugins
directory with git, and add zsh-tre
to the plugins
array in your .zshrc
file:
plugins=(... zsh-tre)
There is really nothing to it. All that this plugin does it alias tre
to this:
tre() {
command tre "$@" -e && source "/tmp/tre_aliases_$USER" 2>/dev/null;
}
You can read more about this in tre
's readme.