Skip to content

Instantly share code, notes, and snippets.

@akiyoshi83
Created July 19, 2014 13:17
Show Gist options
  • Save akiyoshi83/ed6bbf9bf64871b43957 to your computer and use it in GitHub Desktop.
Save akiyoshi83/ed6bbf9bf64871b43957 to your computer and use it in GitHub Desktop.
tmux.conf 少ない行数でとりあえずそこそこ使い易い設定。
#prefix
set-option -g prefix C-t
#key
bind r source-file ~/.tmux.conf; display-message "tmux conf reloaded."
bind s split-window -v
bind v split-window -h
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
bind -r < resize-pane -L 1
bind -r > resize-pane -R 1
bind -r - resize-pane -D 1
bind -r + resize-pane -U 1
bind : command-prompt
bind C-i select-pane -t :.+
bind Escape copy-mode
setw -g mode-keys vi
#option
set -g display-time 6000
set -g status-interval 30
set -g history-limit 5000
#set -g mouse-select-pane on
#status line
set -g status-right "#(w | head -1 | cut -d, -f4) | %Y/%m/%d (%a) %p %I:%M"
setw -g window-status-format "#I:#W"
setw -g window-status-current-format "#I:#W*"
set -g status-bg black
set -g status-fg white
set -g status-left-fg white
set -g status-left-bg magenta
set -g status-right-fg white
set -g status-right-bg green
set-window-option -g window-status-current-attr bright,reverse
set-window-option -g window-status-current-bg cyan
set-window-option -g window-status-current-fg black
set-window-option -g xterm-keys on
set-option -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment