mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 11:01:31 +01:00
zsh: alias bat when available command is batcat
This commit is contained in:
parent
fbc6934f8f
commit
76579a603e
|
@ -73,8 +73,14 @@ export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
|||
|
||||
# less options
|
||||
export LESS='-xRF-j12' # -j12: displays 12 lines before search results with / and ?
|
||||
if [[ "$(command -v bat)" ]]; then
|
||||
alias cat=bat
|
||||
if [[ "$(command -v bat)" || "$(command -v batcat)" ]]; then
|
||||
if [[ "$(command -v bat)" ]]; then
|
||||
alias cat=bat
|
||||
export PAGER=bat
|
||||
else
|
||||
alias cat=batcat
|
||||
export PAGER=batcat
|
||||
fi
|
||||
export BAT_THEME="gruvbox-dark"
|
||||
export BAT_PAGER="less $LESS"
|
||||
export PAGER=bat
|
||||
|
|
Loading…
Reference in New Issue
Block a user