Skip to content

Instantly share code, notes, and snippets.

@umeyuki
Created December 2, 2019 07:14
Show Gist options
  • Save umeyuki/407d8cff6f0720f2968d15b8baf0cb7f to your computer and use it in GitHub Desktop.
Save umeyuki/407d8cff6f0720f2968d15b8baf0cb7f to your computer and use it in GitHub Desktop.
.tmux.conf
set-option -g prefix C-t
# key bind
bind-key C-n next-window
bind-key C-p previous-window
bind-key C-[ copy-mode
bind-key C-] paste-buffer
# use bash
set -g default-shell /bin/bash
set -s escape-time 0
set-option -g history-limit 10000
# terminal
set-option -g default-terminal xterm-256colo
set-option -g default-terminal screen-256color
# window option
set-window-option -g window-status-current-attr reverse,underscore
set-window-option -g mouse on
set-window-option -g automatic-rename on
unbind r
bind r \
source-file ~/.tmux.conf \;\
display 'Reloaded tmux config.'
# # ターミナル(iTerm2等)のタイトルを設定
set-option -g set-titles on
# # usename@host: tmuxみたく
# # (※usernameとhostはtmuxを起動しているマシンのもの) \
set-option -g set-titles-string "#(whoami)@#h: tmux"
# # ペインの区切り線のスタイル
set-option -g pane-active-border-fg cyan
set-option -g pane-active-border-bg black
set-window-option -g pane-border-bg black
set-window-option -g pane-border-fg white
# man
bind-key w command-prompt "split-window -p 65 'exec %%'"
#set-window-option -g window-status-current-fg blue
# move pane
unbind ^A
unbind C-o
bind C-l last-pane
bind C-t select-pane -t :.+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment