Skip to content

Instantly share code, notes, and snippets.

@mollifier
Created September 23, 2020 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mollifier/9f577b018bc7176c783da7ecd97f40ab to your computer and use it in GitHub Desktop.
Save mollifier/9f577b018bc7176c783da7ecd97f40ab to your computer and use it in GitHub Desktop.
簡単なtmux.confの例
# 簡単なtmux.confの例
# プレフィックスキーをCtrl+tに変更する
unbind-key C-b
set-option -g prefix C-t
bind-key C-t send-prefix
# Ctrlを押したままウィンドウの切り替えができるようにする
bind-key C-c new-window
bind-key C-n next-window
bind-key C-p previous-window
# Ctrl+h,j,k,lでペインを切り替える
# h = 左、j = 下、k = 上、l = 右
bind-key h select-pane -L
bind-key C-h select-pane -L
bind-key j select-pane -D
bind-key C-j select-pane -D
bind-key k select-pane -U
bind-key C-k select-pane -U
bind-key l select-pane -R
bind-key C-l select-pane -R
# Escを押すと、待ち時間なしで即座に単独のEscとみなす
set-option -s escape-time 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment