Created
October 24, 2012 08:13
-
-
Save Altech/3944757 to your computer and use it in GitHub Desktop.
My tmux configuration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prefix | |
unbind C-b | |
set-option -g prefix C-z | |
bind C-z send-prefix | |
bind C-d detach | |
# Option | |
set-window-option -g utf8 on | |
# ウィンドウの番号を0からではなく1からにする | |
set-option -g base-index 1 | |
# | |
set-option -g buffer-limit 20 | |
set-option -g history-limit 5000 | |
bind C-r source-file ~/.tmux.conf | |
## Window | |
unbind p | |
unbind n | |
unbind C-j | |
unbind C-f | |
bind f next-window | |
bind j previous-window | |
bind C-f next-window | |
bind C-j previous-window | |
bind C-c new-window | |
## Pane | |
# 切り替え | |
unbind Tab | |
bind Tab select-pane -t:.+ | |
# # 分割していたペインそれぞれをWindowに | |
# bind b break-pane | |
# # ペインの縦分割(vertical) | |
# bind v split-window -v | |
# # ペインの横分割(horizon) | |
# bind h split-window -h | |
# ペインの分割(Emacs) | |
# X 0 現在のpanel閉じる | |
# X 1 現在以外のpanel閉じる | |
# X 2 縦分割 | |
# X 3 横分割 | |
bind-key x command-prompt "run ' case %1 in 0 ) tmux break-pane -d ;; 1 ) tmux break-pane ;; 2 ) tmux split-window -v ;; 3 ) tmux split-window -h ;; esac ; '" | |
# # hjklで伸縮 # Window切り替えと衝突 | |
# bind -r C-h resize-pane -L 5 | |
# bind -r C-l resize-pane -R 5 | |
# bind -r C-j resize-pane -D 5 | |
# bind -r C-k resize-pane -U 5 | |
# window movement | |
bind-key n command-prompt -p "move window to:" "move-window -t '%%'" | |
# pane movement | |
# pane movement | |
bind-key < command-prompt -p "join pane from:" "join-pane -s '%%'" | |
bind-key > command-prompt -p "send pane to:" "join-pane -t '%%'" | |
## Kill | |
# ペイン終了 | |
bind k kill-pane | |
# ウィンドウ終了 | |
bind K kill-window | |
## マウス操作(未確認) | |
# マウスのクリックでペインを選択する | |
set-option -g mouse-select-pane on | |
# マウスでペインをリサイズする | |
set-option -g mouse-resize-pane on | |
# マウスでスクロールする | |
set-option -g mode-mouse on | |
# マウスでウィンドウを選択する | |
set-option -g mouse-select-window on | |
## コピーモード | |
# C-[ : コピーモード | |
# C-Space : マーク | |
# C-{f,j,p,n} : 移動 | |
# M-w : コピー | |
# C-] : ペースト | |
## View | |
# view | |
set -g status-interval 5 | |
set -g status-left-length 16 | |
set -g status-right-length 50 | |
# status | |
set -g status-fg white | |
set -g status-bg black | |
set -g status-left-length 30 | |
set -g status-left '#[fg=white][#S#[fg=white]]|#[default]' | |
set -g status-right '#[fg=white,bg=red,bold] [%Y-%m-%d(%a) %H:%M]#[default]' | |
# window-status-current | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg blue | |
setw -g window-status-current-attr bold#,underscore | |
# # pane-active-border | |
# set -g pane-active-border-fg black | |
# set -g pane-active-border-bg blue | |
### MEMO ### | |
# C-z C-, : Rename Window |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment