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

@ -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() {