https://github.com/redxtech/zsh-tre
A zsh plugin that makes using the tre command easier.
https://github.com/redxtech/zsh-tre
oh-my-zsh tre zsh zsh-plugin
Last synced: 3 months ago
JSON representation
A zsh plugin that makes using the tre command easier.
- Host: GitHub
- URL: https://github.com/redxtech/zsh-tre
- Owner: redxtech
- License: other
- Created: 2021-07-02T22:52:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-06T23:51:05.000Z (over 4 years ago)
- Last Synced: 2025-02-19T13:46:52.461Z (9 months ago)
- Topics: oh-my-zsh, tre, zsh, zsh-plugin
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
- awesome-zsh-plugins - tre - Makes using [tre](https://github.com/dduan/tre#editor-aliasing) easier. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - tre - Makes using <b><code> 1128⭐</code></b> <b><code> 28🍴</code></b> [tre](https://github.com/dduan/tre#editor-aliasing)) easier. (Plugins / ZSH on Windows)
README
# tre
> tre is a zsh plugin that makes using `tre` easier.
## Installing
### zinit
Add this to your zinit config (.zshrc):
```zsh
zinit light redxtech/zsh-tre
# it also works with turbo mode:
zinit ice wait lucid
zinit load redxtech/zsh-tre
```
### oh-my-zsh
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:
```zsh
plugins=(... zsh-tre)
```
## Usage
There is really nothing to it. All that this plugin does it alias `tre` to this:
```zsh
tre() {
command tre "$@" -e && source "/tmp/tre_aliases_$USER" 2>/dev/null;
}
```
You can read more about this in `tre`'s [readme](https://github.com/dduan/tre#editor-aliasing).
## Author
**tre** © [Gabe Dunn](https://github.com/redxtech), Released under the [MIT](./license.md) License.