Consistently set TERM as alacritty

This affects color rendering inside of tmux and also without tmux.
This commit is contained in:
Sanchayan Maity 2020-11-18 13:14:08 +05:30
parent 77514eaea0
commit 74fbeed89d
3 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,9 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator
# Setup term for programs to be able to use it
env:
TERM: alacritty
window:
# Window dimensions (changes require restart)
#

View file

@ -1,5 +1,5 @@
set PATH {$HOME}/.nix-profile/bin {$HOME}/.cargo/bin {$HOME}/.cabal/bin $PATH
set -gx TERM tmux-256color
set -gx TERM alacritty
set -gx NIX_PATH {$HOME}/.nix-defexpr/channels
export EDITOR='nvim'

View file

@ -86,11 +86,8 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# set default terminal mode to 256 colors
# set -g default-terminal "screen-256color"
# set default terminal mode to 256 colors
set-option -g default-terminal "tmux-256color"
set-option -sa terminal-overrides ',tmux-256color:RGB'
# alacritty as default terminal. This effects color rendering.
set-option -g default-terminal "alacritty"
set-option -g status-style fg=colour187,bg=colour237
set-window-option -g window-status-style fg=colour187,bg=colour237