1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

zsh: cleanup less options, add LC_ALL

This commit is contained in:
bretello 2020-03-09 17:54:02 +01:00
parent 392b6ba926
commit 7f290db37b

View File

@ -1,7 +1,6 @@
# Check for update, set DISABLE_UPDATE_PROMPT=yes to disable the prompt and automatically update # 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 env DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT DOTFILES=$DOTFILES zsh -f $DOTFILES/check_for_update.sh
source <(antibody init) source <(antibody init)
export ZSH=$(antibody path robbyrussell/oh-my-zsh) export ZSH=$(antibody path robbyrussell/oh-my-zsh)
export ZSH_THEME="brethil" 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 HISTSIZE=100000
export LANG=en_US.UTF-8 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 alias cat=bat
export BAT_PAGER="less -RF" export BAT_PAGER="less -xRF"
export PAGER=bat export PAGER=bat
else
# less options
export LESS='-R-j12' # displays 12 lines before search results with / and ?
fi fi
# less options
export LESS='-RF-j12' # -j12: displays 12 lines before search results with / and ?
if [[ $SSH_CLIENT ]]; then if [[ $SSH_CLIENT ]]; then
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock