1
0
Fork 0

tmux, kitty, zsh: go all in on truecolor

This commit is contained in:
Von Random 2022-08-22 18:25:37 +03:00
parent cfa47c3630
commit c6858a6a82
4 changed files with 30 additions and 13 deletions

View file

@ -7,6 +7,8 @@ box_drawing_scale 0.1, 0.5, 1, 1.5
disable_ligatures cursor
cursor_blink_interval 0
term kitty-direct
enable_audio_bell no
strip_trailing_spaces always
open_url_withopen_url_with default

View file

@ -43,4 +43,4 @@ set -g status-right-length "100"
# relevant to local only
set -g terminal-overrides "alacritty:Tc,kitty-xterm:Tc,xterm-256color:Tc,rxvt-unicode*:Tc"
set -g default-terminal "tmux-256color"
set -g default-terminal "tmux-direct"

View file

@ -56,6 +56,21 @@ atmux() { tmux attach || tmux }
# sudo
sush() { command sudo -Es }
# termcompat
termcompat() {
typeset term
case $TERM in
(rxvt-unicode-*) term=rxvt-unicode;;
(tmux*) term=screen.xterm-new;;
(*) term=xterm;;
esac
TERM=$term command $@
}
cmds=(ssh tig)
for cmd in $cmds; do
alias $cmd="termcompat $cmd"
done
# grc
if [[ -x $(whence -p grc) ]]; then
cmds=(\

View file

@ -18,18 +18,18 @@ typeset -A prompt_symbols=(
bang $'\n\U01f525'
)
typeset -A prompt_colors=(
fg 15
user 53
root 52
ssh 90
host 237
cwd 234
ro 124
git_branch 237
git_unstaged 130
git_staged 25
git_untracked 88
git_unmerged 30
fg '#ebdbb2'
user '#458588'
root '#cc241d'
ssh '#d65d0e'
host '#504945'
cwd '#3c3836'
ro '#d65d0e'
git_branch '#b16286'
git_unstaged '#d65d0e'
git_staged '#458588'
git_untracked '#cc241d'
git_unmerged '#689d6a'
)
precmd.prompt.init() {