Skip to content

Commit

Permalink
shell: don't use bat as PAGER
Browse files Browse the repository at this point in the history
Apparently `bat` isn't supposed to be set as a pager, even though it has
paging capabilities. So they added a 'feature' that makes bat crash when
it's set as a pager. I have no fucking clue why they'd do that.
sharkdp/bat#1413
  • Loading branch information
thezeroalpha committed Dec 1, 2020
1 parent 5b64c33 commit d1b5392
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shell/env
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export EDITOR

export MUSIC_DIR="/Volumes/HDD/Music/iTunes/iTunes Media/Music"

if command -v bat 1>/dev/null 2>&1 && [ -z "$VIMRUNTIME" ]; then export PAGER="bat"
else export PAGER="less -Ri"; fi
export PAGER="less -FRi"

[ -n "$BW_SESHFILE" ] && [ -f "$BW_SESHFILE" ] && export BW_SESSION="$(cat $BW_SESHFILE)"

Expand Down

0 comments on commit d1b5392

Please sign in to comment.