oh-my-zsh plugin for easy integration with bat.
You should have bat
installed, this plugin will do nothing otherwise.
Create a new directory in $ZSH_CUSTOM/plugins
called zsh-bat
and clone this repo into that directory.
git clone https://github.com/fdellwing/zsh-bat.git $ZSH_CUSTOM/plugins/zsh-bat
Add zsh-bat
to your plugin list in ~/.zshrc
.
This plugin will replace cat
with bat
. To run the real cat
command, you can use rcat
. It will also enable syntax highlighting for the man
command.
For usage help with bat
, see sharkdp/bat.