Răsfoiți Sursa

Fix various xterm/tmux/zsh issues with 256 colors

Emmanuel Bouthenot 6 ani în urmă
părinte
comite
ed8b31fbbd
4 a modificat fișierele cu 3 adăugiri și 7 ștergeri
  1. 1 0
      .Xresources
  2. 0 4
      .tmux.conf
  3. 0 2
      .zsh/config/10_alias.zsh
  4. 2 1
      .zshrc

+ 1 - 0
.Xresources

@@ -7,6 +7,7 @@ xterm*faceName: terminus
 xterm*faceSize: 8
 xterm*scrollBar: false
 xterm*visualBell: true
+xterm*termName: xterm-256color
 ! Fix Alt is not Meta
 xterm*eightBitInput: false
 xterm*background: #000010

+ 0 - 4
.tmux.conf

@@ -11,11 +11,9 @@
 #
 # terminal type, history size, env
 #
-set -g default-terminal "screen-256color"
 set -g xterm-keys on
 set -g history-limit 102400
 set -g update-environment "DISPLAY WINDOWID SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION GPG_AGENT_INFO"
-#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
 
 ### Backport some “screen” setting ###
 #
@@ -69,5 +67,3 @@ set -g status-interval 60
 set -g status-left '#[fg=green]#(hostname)#[default] '
 set -g status-right "#[fg=yellow]up: #(uptime|cut -d ' ' -f 4-| sed 's/ days, /d,/ ; s/ load average: /load: /')#[default] #[fg=green]%H:%M %d-%m-%Y#[default] (#S)"
 set -g status-right-length 70
-
-

+ 0 - 2
.zsh/config/10_alias.zsh

@@ -41,8 +41,6 @@ alias mgrep="grep -rnisH --color=auto"
 alias rsu="sudo -E zsh"
 alias reloadsh="exec zsh"
 
-alias tmux="tmux -2"
-
 alias md="mkdir -p"
 mcd() { mkdir -p "$@" && cd "$@" }
 

+ 2 - 1
.zshrc

@@ -16,7 +16,7 @@ zplug "modules/directory", from:prezto
 zplug "modules/dpkg", from:prezto
 zplug "modules/editor", from:prezto
 zplug "modules/environment", from:prezto
-zplug "modules/terminal", from:prezto
+zplug "modules/terminal", from:prezto, defer:2
 zplug "modules/editor", from:prezto
 zplug "modules/git", from:prezto
 zplug "modules/history", from:prezto
@@ -26,6 +26,7 @@ zplug "modules/rsync", from:prezto
 zplug "modules/syntax-highlighting", from:prezto, defer:2
 zplug "modules/history-substring-search", from:prezto
 zplug "mafredri/zsh-async"
+zplug "chrissicool/zsh-256color"
 zplug "k0lter/zsh-themes", as:theme
 
 if [[ -d "${ZSHDOTDIR}/config" ]]; then