Add config for bat

main
Buddy Sandidge 4 years ago
parent d1090feefe
commit 3afa0e8930

@ -29,8 +29,3 @@ if [[ $(uname) == Linux ]]; then
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
if command -v bat &> /dev/null ; then
alias bat='bat --plain --theme zenburn'
alias cat='bat --style=plain --pager=never'
fi

@ -0,0 +1,5 @@
#!/usr/bin/env bash
if command -v bat &> /dev/null ; then
alias cat='bat --pager=never'
fi

@ -0,0 +1,4 @@
#shellcheck disable=SC2034
BAT_THEME=zenburn
BAT_STYLE=plain
MANPAGER="sh -c 'col -bx | bat -l man -p'"

@ -0,0 +1,3 @@
batdiff () {
git diff --name-only --diff-filter=d | xargs bat --diff
}
Loading…
Cancel
Save