aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_tmux.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/_tmux.conf b/_tmux.conf
index aa99223..8ac0d59 100644
--- a/_tmux.conf
+++ b/_tmux.conf
@@ -60,11 +60,17 @@ bind-key m set-option -g mouse on \; display "Mouse: ON"
bind-key M set-option -g mouse off \; display "Mouse: OFF"
## Terminal settings
+# "xterm-256color" for tmux has problem with special keys (e.g., Home, End)
+# bindings in zsh.
+# Credit: https://stackoverflow.com/a/18601007/4856091
+set-option -g default-terminal screen-256color
# Override terminal's default Cr (color reset) to avoid the strange
# 'char+112' when just exited the tmux session.
# Credit: https://github.com/tmux/tmux/issues/266
set-option -g terminal-overrides ',xterm*:Cr=\E]12;gray\007'
+set-window-option -g xterm-keys on
+
## Maximize and restore a pane
unbind-key Up
bind-key Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp