tmux 設定
重い腰を上げて screen をやめて tmux にしてみる。
install
% brew install tmux % brew install reattach-to-user-namespace
.tmux.conf
# Prefix set-option -g prefix C-t # reload bind C-r source-file ~/.tmux.conf # Histories set-option -g history-limit 10000 set-option -g status-utf8 on set-option -g status-interval 5 set-option -g status-bg black set-option -g status-bg white set-window-option -g window-status-current-bg blue set-window-option -g window-status-current-fg white set -g default-terminal "screen-256color" bind C-k kill-pane bind k kill-window unbind & unbind 1 bind 1 break-pane bind 2 split-window -v bind 3 split-window -h set-option -g default-command "reattach-to-user-namespace -l sh" bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer" bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" set -g set-titles-string "#(whoami)@#H" # "#I-#P:#W - #(whoami)@#H" setw -g monitor-activity on set -g status-left-length 40 set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" set -g status-right "#[fg=black]%d %b %R"