From 5afbfe75676cf773093e03a78195ca27345b5ccf Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 19 May 2020 12:46:36 -0300 Subject: [PATCH] Enable 24bit terminals (read comment on how to build the terminfo) --- zsh/terminfo-24bit.src | 12 ++++++++++++ zsh/zshrc | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 zsh/terminfo-24bit.src diff --git a/zsh/terminfo-24bit.src b/zsh/terminfo-24bit.src new file mode 100644 index 0000000..3386012 --- /dev/null +++ b/zsh/terminfo-24bit.src @@ -0,0 +1,12 @@ +# Use colon separators. +xterm-24bit|xterm with 24-bit direct color mode, + use=xterm-256color, + setb24=\E[48:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%dm, + setf24=\E[38:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%dm, +# Use semicolon separators. +xterm-24bits|xterm with 24-bit direct color mode, + use=xterm-256color, + setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm, + setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm, + +# build with tic -x -o ~/.terminfo terminfo-24bit.src diff --git a/zsh/zshrc b/zsh/zshrc index 00588d2..71486be 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -34,9 +34,15 @@ zstyle ':completion:*' verbose true zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' +# Support 24bit terminal (see the terminfo file) +export TERM=xterm-24bit + # Rust export PATH="$HOME/.cargo/bin:$PATH" +# My executables +export PATH="$PATH:$HOME/bin" + # Completions source ~/.gitflow-completion.zsh