Update terminal colours

This commit is contained in:
Rob Watson 2021-03-12 10:37:10 +01:00
parent 2a3b819be1
commit 77798b5bdb
3 changed files with 12 additions and 5 deletions

View File

@ -3,14 +3,14 @@
# Any items in the `env` entry below will be added as # Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables # environment variables. Some entries may override variables
# set by alacritty itself. # set by alacritty itself.
#env: env:
# TERM variable # TERM variable
# #
# This value is used to set the `$TERM` environment variable for # This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will # each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is # check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used. # available, otherwise `xterm-256color` is used.
#TERM: xterm-256color TERM: xterm-256color
#window: #window:
# Window dimensions (changes require restart) # Window dimensions (changes require restart)

View File

@ -1,8 +1,9 @@
# https://gist.github.com/spicycode/1229612 # https://gist.github.com/spicycode/1229612
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
set -g base-index 1 set -ga terminal-overrides ',*256col*:Tc'
set -g base-index 1
set-window-option -g automatic-rename off set-window-option -g automatic-rename off
set-window-option -g allow-rename off set-window-option -g allow-rename off
set-option -g set-titles on set-option -g set-titles on

10
vimrc
View File

@ -27,8 +27,6 @@ set expandtab
set splitbelow set splitbelow
set splitright set splitright
set encoding=utf-8 set encoding=utf-8
set t_Co=256
set termguicolors
set hidden set hidden
set history=1000 set history=1000
set nowrap set nowrap
@ -71,6 +69,14 @@ set pumheight=200
set completeopt=menu,menuone,popup,noselect set completeopt=menu,menuone,popup,noselect
set completepopup=width:300,height:50,align:item,border:off set completepopup=width:300,height:50,align:item,border:off
" Enable 24-bit colours.
" https://github.com/alacritty/alacritty/issues/109#issuecomment-440353106
if exists('+termguicolors')
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
" Colour scheme: " Colour scheme:
colorscheme nord colorscheme nord