From 7f290db37b0af3da86bcda15abe35dd8af6b9552 Mon Sep 17 00:00:00 2001 From: bretello Date: Mon, 9 Mar 2020 17:54:02 +0100 Subject: [PATCH] zsh: cleanup less options, add LC_ALL --- brethil_dotfile.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/brethil_dotfile.sh b/brethil_dotfile.sh index d9b949c..77f1ff9 100755 --- a/brethil_dotfile.sh +++ b/brethil_dotfile.sh @@ -1,7 +1,6 @@ # Check for update, set DISABLE_UPDATE_PROMPT=yes to disable the prompt and automatically update env DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT DOTFILES=$DOTFILES zsh -f $DOTFILES/check_for_update.sh - source <(antibody init) export ZSH=$(antibody path robbyrussell/oh-my-zsh) export ZSH_THEME="brethil" @@ -28,14 +27,15 @@ export KEYTIMEOUT=1 # reduce the transition time between vim modes to 0.1s export HISTSIZE=100000 export LANG=en_US.UTF-8 -if [[ $(command -v bat) ]]; then +export LC_ALL=en_US.UTF-8 + +if [[ "$(command -v bat)" ]]; then alias cat=bat - export BAT_PAGER="less -RF" + export BAT_PAGER="less -xRF" export PAGER=bat -else - # less options - export LESS='-R-j12' # displays 12 lines before search results with / and ? fi +# less options +export LESS='-RF-j12' # -j12: displays 12 lines before search results with / and ? if [[ $SSH_CLIENT ]]; then export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock