mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
zsh: cleanup less options, add LC_ALL
This commit is contained in:
parent
392b6ba926
commit
7f290db37b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user