|
# vim: set ft=tmux:
set -g base-index 1
# default window for session cmd
new-session -s cmd
new-window -d -t cmd:
new-window -d -t cmd:
new-window -d -t cmd:
new-window -d -t cmd:
# set prefix to `
unbind-key C-b
set-option -g prefix `
# press ` for 2 times to get `
bind ` send-prefix
# use ; for command prompt
unbind :
unbind \;
bind \; command-prompt
# screen like binding
unbind x
bind k confirm-before kill-pane
unbind [
bind Escape copy-mode
setw -g mode-keys vi
setw -g xterm-keys on
unbind %
unbind c
bind c new-window -c "#{pane_current_path}"
bind _ split-window -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
# update "terminal window" title
set-option -g set-titles on
# I rely on zsh to rename window title
setw -g automatic-rename off
set-option -g visual-activity on
setw -g monitor-activity on
# prevent application like less, vim clear screen after exit
set-window-option -g alternate-screen off
setw -g utf8 on
set -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256"
set -g default-terminal "screen-256color"
#set -g default-terminal "xterm"
set -g status-utf8 on
set -g status-justify centre
set -g status-bg default
set -g status-left "#[fg=red][ #[fg=green]#H #[fg=red]]#[default]"
set -g status-left-length 20
set -g status-right-length 25
set -g status-right "#[fg=red][ #[fg=green]%H:%M #[fg=magenta]%a %m-%d #[fg=red]] #[default]"
setw -g window-status-format '#[fg=blue,bold]#I: #W#F#[default]'
setw -g window-status-current-format '#[fg=yellow,bold,reverse]#I: #W#F#[default] '
set -g encoding utf-8
set -s escape-time 0
|
所有评论(0)