tmuxã使ã£ã¦ã¿ã
ãããããªã¨ãã§è¨äºã«ãªã£ã¦ããã®ã§æ¸ãå¿ è¦ã¯ãªãããã¨ããããã¡ã¢ã
screenã§ç¸¦åå²ããããã¦æ¢ãã¦ããããtmuxãã¯ãã£ã¦ããã¨ã®ãã¨ã ã£ãã®ã§è©¦ãã¦ã¿ãã
tmux-1.5.0
ã¤ã³ã¹ãã¼ã«ã¯libeventã®ãã¼ã¸ã§ã³ãä½ãã£ãã®ã§ã¢ããã°ã¬ã¼ãã
ä»åº¦ã¯memcachedãåããªããªã£ãã®ã§ã¢ããã°ã¬ã¼ãã
â»åè
http://d.hatena.ne.jp/jonki/20100805/1280980895
è¨å®ãã¡ã¤ã« .tmux.conf
/usr/share/doc/tmux-1.2/examples/screen-keys.conf
ããã«ããç¨åº¦ç¨æãã¦ããã
ããããªããã°ãããããããªãã®ãã³ãã¼ãã¦ããã
ã¨ããããè²¼ãã
# prefixãã¼ãctrl+tã¸å¤æ´
set-option -g prefix C-t
unbind-key C-b
bind-key C-t send-prefix
# prefix + r ã§è¨å®ãã¡ã¤ã«ãåèªã¿è¾¼ã¿
bind r source-file ~/.tmux.conf
# prefixãã¼é£æã§ç´åã®ã¦ã£ã³ãã¦ã¨åãæ¿ã
unbind C-t
bind-key C-t last-window
# copyã¢ã¼ãã®ãã¼ãã¤ã³ããvi風ã«
set-window-option -g mode-keys vi
# æ¥æ¬èªå¯¾å¿
set-window-option -g utf8 on
# ã¦ã£ã³ãã¦ååºå®
set-window-option -g automatic-rename off
# ãã¦ã¹ã§ç§»å
set-option -g mouse-select-pane on
# çªå·åºæºå¤
set-option -g base-index 1
set -g history-limit 100000#---------------------------------------
# è²è¨å®
set -g status-bg colour7
set -g status-fg black
set -g status-attr dim
# å·¦é¨:whoami@hostname
set -g status-left '#[fg=green,bold][#20(whoami)@#H]#[default]'
# å³é¨:[æ¥æ]
set -g status-right '#[fg=green,bold][%Y/%m/%d(%a)%H:%M]#[default]'
set -g message-attr bold
set -g message-fg white
set -g message-bg redset -g pane-active-border-fg white
set -g pane-active-border-bg blackset-window-option -g mode-bg white
set-window-option -g mode-fg black
set-window-option -g window-status-bg black
set-window-option -g window-status-fg white
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg colour12
set-window-option -g window-status-current-attr bold#-------------------------------------
# ç´åã®ã¦ã£ã³ãã¦
bind C-t last-window# åå²ãã¦ãããã¤ã³ãããããWindowã«
bind b break-pane
# ãã¤ã³ã®ç¸¦åå²
bind s split-window -v
# ãã¤ã³ã®æ¨ªåå²
bind v split-window -h# åå²ç»é¢ã¸ã®ç§»åãviã©ã¤ã¯ã«å²å½
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R# ãã¤ã³çªå·è¡¨ç¤º
bind i display-panes# prefix + spaceã§ã¦ã£ã³ãã¦ã®ä¸è¦§è¡¨ç¤º
bind Space choose-window
ããããããã£ã¦è©¦ãã
以ä¸