yamakiy’s tech blog

技術系の記事をメインにやります。

tmux設定メモ

tmux.conf

# global /etc/tmux.conf
# ~/.tmux.conf

# キーバインド変更
set-option -g prefix C-t

unbind-key C-b
bind-key C-t send-prefix

# ハイライト設定
set -g status-bg black
set -g status-fg white
set-window-option -g window-status-current-bg green
set-window-option -g window-status-current-fg black

# C-t C-tで最後のwindowと切り替え
bind-key C-t last-window
# bind C-t run "tmux last-pane || tmux last-window || tmux new-window"

bind-key + resize-pane -D 3
bind-key - resize-pane -U 3
bind-key < resize-pane -L 3
bind-key > resize-pane -R 3

set-option -g base-index 1

setw -g window-status-format "#[fg=white] #I:#{=20:window_name} "
setw -g window-status-current-format "#[fg=colour234,bg=colour248,bold] #I:#{=20:window_name} "

set repeat-time 200