shell: Switch to xterm TERM variable
Move any and all display to xterm-256color color variable, to enable always the same color display.
This commit is contained in:
parent
3d742a0503
commit
696953d3f7
2 changed files with 5 additions and 6 deletions
|
@ -42,10 +42,7 @@ export LANG="en_US.UTF-8"
|
||||||
# if we forgot to set it treat bash as default
|
# if we forgot to set it treat bash as default
|
||||||
export SHELL=${SHELL:-/bin/bash}
|
export SHELL=${SHELL:-/bin/bash}
|
||||||
|
|
||||||
# if terminfo for our terminal emulator does not exist fall back to xterm
|
export TERM=xterm-256color
|
||||||
if [ "$(find /usr/share/terminfo -name "$TERMINAL*" | wc -l)" -eq 0 ] || [ -z "$TERMINAL" ]; then
|
|
||||||
export TERM=xterm
|
|
||||||
fi
|
|
||||||
|
|
||||||
if exist fzf; then
|
if exist fzf; then
|
||||||
export FZF_DEFAULT_OPTS="--bind 'tab:toggle+down,shift-tab:toggle+up,ctrl-g:top,ctrl-t:toggle-preview,ctrl-d:preview-half-page-down,ctrl-u:preview-half-page-up' --color=light -1 -m --delimiter :"
|
export FZF_DEFAULT_OPTS="--bind 'tab:toggle+down,shift-tab:toggle+up,ctrl-g:top,ctrl-t:toggle-preview,ctrl-d:preview-half-page-down,ctrl-u:preview-half-page-up' --color=light -1 -m --delimiter :"
|
||||||
|
|
|
@ -24,9 +24,9 @@ set -g renumber-windows on
|
||||||
set-window-option -g automatic-rename on
|
set-window-option -g automatic-rename on
|
||||||
set-option -g set-titles on
|
set-option -g set-titles on
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
set -s default-terminal $TERM
|
|
||||||
# allow truecolor support
|
# allow truecolor support
|
||||||
set -as terminal-overrides ",*:Tc"
|
set -g default-terminal 'xterm-256color'
|
||||||
|
set -ga terminal-overrides ',xterm-256color:Tc'
|
||||||
# Set Cursor terminal override, so nvim can change cursor style when changing modes
|
# Set Cursor terminal override, so nvim can change cursor style when changing modes
|
||||||
# more info see nvim, :help tui-cursor-shape
|
# more info see nvim, :help tui-cursor-shape
|
||||||
# LEGACY: this should not be necessary anymore
|
# LEGACY: this should not be necessary anymore
|
||||||
|
@ -42,6 +42,8 @@ setw -g aggressive-resize on
|
||||||
# No delay for escape key press
|
# No delay for escape key press
|
||||||
set -sg escape-time 0
|
set -sg escape-time 0
|
||||||
|
|
||||||
|
# to enable autoread option in neovim
|
||||||
|
set-option -g focus-events on
|
||||||
|
|
||||||
####################
|
####################
|
||||||
## 2. PLUGINS ##
|
## 2. PLUGINS ##
|
||||||
|
|
Loading…
Reference in a new issue