first commit
This commit is contained in:
commit
205faf4224
5471 changed files with 973850 additions and 0 deletions
19
config/zsh/plugins/zsh-bat/zsh-bat.plugin.zsh
Normal file
19
config/zsh/plugins/zsh-bat/zsh-bat.plugin.zsh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
if command -v batcat >/dev/null 2>&1; then
|
||||
# Save the original system `cat` under `rcat`
|
||||
alias rcat="$(which cat)"
|
||||
|
||||
# For Ubuntu and Debian-based `bat` packages
|
||||
# the `bat` program is named `batcat` on these systems
|
||||
alias cat="$(which batcat)"
|
||||
export MANPAGER="sh -c 'col -bx | batcat -l man -p'"
|
||||
export MANROFFOPT="-c"
|
||||
elif command -v bat >/dev/null 2>&1; then
|
||||
# Save the original system `cat` under `rcat`
|
||||
alias rcat="$(which cat)"
|
||||
|
||||
# For all other systems
|
||||
alias cat="$(which bat)"
|
||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
export MANROFFOPT="-c"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue