Add config for bat
This commit is contained in:
parent
d1090feefe
commit
3afa0e8930
@ -29,8 +29,3 @@ if [[ $(uname) == Linux ]]; then
|
|||||||
alias fgrep='fgrep --color=auto'
|
alias fgrep='fgrep --color=auto'
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v bat &> /dev/null ; then
|
|
||||||
alias bat='bat --plain --theme zenburn'
|
|
||||||
alias cat='bat --style=plain --pager=never'
|
|
||||||
fi
|
|
||||||
|
|||||||
5
bat/.config/bash/bashrc.d/bat.sh
Normal file
5
bat/.config/bash/bashrc.d/bat.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if command -v bat &> /dev/null ; then
|
||||||
|
alias cat='bat --pager=never'
|
||||||
|
fi
|
||||||
4
bat/.config/profile/env.d/bat.env
Normal file
4
bat/.config/profile/env.d/bat.env
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#shellcheck disable=SC2034
|
||||||
|
BAT_THEME=zenburn
|
||||||
|
BAT_STYLE=plain
|
||||||
|
MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||||
3
bat/.config/profile/profile.d/bat.sh
Normal file
3
bat/.config/profile/profile.d/bat.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
batdiff () {
|
||||||
|
git diff --name-only --diff-filter=d | xargs bat --diff
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user