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 disable_ligatures cursor
cursor_blink_interval 0 cursor_blink_interval 0
term kitty-direct
enable_audio_bell no enable_audio_bell no
strip_trailing_spaces always strip_trailing_spaces always
open_url_withopen_url_with default open_url_withopen_url_with default

View file

@ -43,4 +43,4 @@ set -g status-right-length "100"
# relevant to local only # relevant to local only
set -g terminal-overrides "alacritty:Tc,kitty-xterm:Tc,xterm-256color:Tc,rxvt-unicode*:Tc" 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 # sudo
sush() { command sudo -Es } 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 # grc
if [[ -x $(whence -p grc) ]]; then if [[ -x $(whence -p grc) ]]; then
cmds=(\ cmds=(\

View file

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