Skip to content

Instantly share code, notes, and snippets.

@yagince
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save yagince/39a9332d725946b7c507 to your computer and use it in GitHub Desktop.

Select an option

Save yagince/39a9332d725946b7c507 to your computer and use it in GitHub Desktop.
set-option -g default-shell /bin/zsh
#+----------------------------------------------------------------------------------------+
# キーバインド
#+----------------------------------------------------------------------------------------+
#プレフィックスキーを設定
unbind-key C-b
set-option -g prefix C-z
bind-key C-z send-prefix
# コピーモードでemacs風の操作(終了時はC-x c)
setw -g mode-keys emacs
unbind -t emacs-copy Enter
unbind -t emacs-copy C-w
unbind -t emacs-copy M-w
set-option -g default-command "reattach-to-user-namespace -l zsh"
bind-key -t emacs-copy C-w copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -t emacs-copy M-w copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -t emacs-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
bind-key C-y paste-buffer
# Loading .tmux.conf
bind r source-file ~/.tmux.conf\; display-message "Reload Completed!!!"
#+----------------------------------------------------------------------------------------+
# ペイン
#+----------------------------------------------------------------------------------------+
bind 0 kill-pane
bind 1 break-pane
# ペインの縦分割
bind 2 split-window -v
# ペインの横分割
bind 3 split-window -h
bind o select-pane -t :.+
bind k kill-window
bind b choose-window
set-window-option -g mode-mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#+----------------------------------------------------------------------------------------+
# tmux powerline
#+----------------------------------------------------------------------------------------+
set-option -g status on
set-option -g status-interval 2
set-option -g status-utf8 on
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment