Browse Source

Enable 24bit terminals (read comment on how to build the terminfo)

master
Julio Biason 5 years ago
parent
commit
5afbfe7567
  1. 12
      zsh/terminfo-24bit.src
  2. 6
      zsh/zshrc

12
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

6
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:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' 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 # Rust
export PATH="$HOME/.cargo/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH"
# My executables
export PATH="$PATH:$HOME/bin"
# Completions # Completions
source ~/.gitflow-completion.zsh source ~/.gitflow-completion.zsh

Loading…
Cancel
Save