Skip to content

Commit

Permalink
Use system env vars for TERM
Browse files Browse the repository at this point in the history
  • Loading branch information
ixil committed Dec 15, 2021
1 parent bedcda0 commit 0ff3bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appearance.d/appearance.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ endif
" augroup END

" 256color termcaps
if &term =~# '256color'
if $TERM =~# '256color'
if ( &term =~# '^screen' || &term =~# '^tmux' )
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
endif
set termguicolors
elseif &term == 'xterm-kitty'
elseif $TERM == 'xterm-kitty'
let &t_RV = ''
let &t_ut = ''
set termguicolors
Expand Down

0 comments on commit 0ff3bc7

Please sign in to comment.