From c6858a6a82e4800482aecf6b7490921f5ff45b33 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 22 Aug 2022 18:25:37 +0300 Subject: [PATCH] tmux, kitty, zsh: go all in on truecolor --- kitty.conf | 2 ++ tmux.conf | 2 +- zsh/functions.zsh | 15 +++++++++++++++ zsh/prompt-powerline.zsh | 24 ++++++++++++------------ 4 files changed, 30 insertions(+), 13 deletions(-) diff --git a/kitty.conf b/kitty.conf index 1fd9f6e..ec10b8f 100644 --- a/kitty.conf +++ b/kitty.conf @@ -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 diff --git a/tmux.conf b/tmux.conf index a07187a..2504486 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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" diff --git a/zsh/functions.zsh b/zsh/functions.zsh index bce4272..76ba592 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -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=(\ diff --git a/zsh/prompt-powerline.zsh b/zsh/prompt-powerline.zsh index 4b0879c..37fac35 100644 --- a/zsh/prompt-powerline.zsh +++ b/zsh/prompt-powerline.zsh @@ -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() {