Last active
July 7, 2018 03:19
-
-
Save shingo-mori/5ee7102abf7171a476cf80a952b4e89a to your computer and use it in GitHub Desktop.
my tmux settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# global options | |
set -g mode-keys vi | |
set -g bell-action none | |
set -g visual-bell off | |
set -g display-panes-time 2000 | |
set -g allow-rename off | |
set -g mouse on | |
# key bindings | |
## change prefix key from C-b to C-t | |
set -g prefix C-t | |
unbind-key C-b | |
bind-key t send-prefix | |
bind . command-prompt | |
bind C-j command-prompt -p "Join pane from:" "join-pane -s ':%%'" | |
bind C-s command-prompt -p "Send pane to:" "join-pane -t ':%%'" | |
## session | |
bind C-d detach | |
## window | |
bind d confirm kill-window | |
bind D confirm kill-server | |
bind n next-window | |
bind p previous-window | |
bind s split-window -v -c "#{pane_current_path}" | |
bind v split-window -h -c "#{pane_current_path}" | |
bind / command-prompt "rename-window '%%'" | |
## pane | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind ! break-pane | |
bind = select-layout tiled | |
bind | select-layout even-horizontal | |
bind V select-layout even-vertical | |
bind -r H resize-pane -L 10 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment