Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a21ffa1
commit 8b2c18a
Showing
1 changed file
with
51 additions
and
50 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,87 @@ | ||
set -g default-terminal screen-256color | ||
set-option -g default-terminal screen-256color | ||
|
||
setw -g mouse on | ||
set-option -w -g mouse on | ||
|
||
# Switch to previous window | ||
bind-key C-b last-window | ||
|
||
# Automatically set window title | ||
set-window-option -g automatic-rename on | ||
set-option -w -g automatic-rename on | ||
set-option -g set-titles on | ||
|
||
# Automatically renumber windows | ||
set-option -g renumber-windows on | ||
|
||
# vi for copy mode | ||
setw -g mode-keys vi | ||
set-option -w -g mode-keys vi | ||
|
||
# vi for command status | ||
set -g status-keys vi | ||
set-option -g status-keys vi | ||
|
||
# split panes | ||
# twm style (spawn a new terminal) | ||
bind -n M-enter split-window -h | ||
bind-key -n M-enter split-window -h | ||
# vim style | ||
bind v split-window -h | ||
bind s split-window -v | ||
|
||
# switch to previous window | ||
bind 6 last-window | ||
bind C-b last-window | ||
bind-key v split-window -h | ||
bind-key s split-window -v | ||
|
||
set -s escape-time 0 | ||
set-option -s escape-time 0 | ||
|
||
# Start windows and panes at 1, not 0 | ||
set -g base-index 1 | ||
setw -g pane-base-index 1 | ||
set-option -g base-index 1 | ||
set-option -w -g pane-base-index 1 | ||
|
||
# switch windows (twm style) | ||
bind -n M-1 select-window -t 1 | ||
bind -n M-2 select-window -t 2 | ||
bind -n M-3 select-window -t 3 | ||
bind -n M-4 select-window -t 4 | ||
bind -n M-5 select-window -t 5 | ||
bind -n M-6 select-window -t 6 | ||
bind -n M-7 select-window -t 7 | ||
bind -n M-8 select-window -t 8 | ||
bind -n M-9 select-window -t 9 | ||
bind-key -n M-1 select-window -t 1 | ||
bind-key -n M-2 select-window -t 2 | ||
bind-key -n M-3 select-window -t 3 | ||
bind-key -n M-4 select-window -t 4 | ||
bind-key -n M-5 select-window -t 5 | ||
bind-key -n M-6 select-window -t 6 | ||
bind-key -n M-7 select-window -t 7 | ||
bind-key -n M-8 select-window -t 8 | ||
bind-key -n M-9 select-window -t 9 | ||
|
||
# twm pane switching | ||
#bind -n M-6 last-window | ||
bind -n M-k select-pane -U | ||
bind -n M-j select-pane -D | ||
bind -n M-h select-pane -L | ||
bind -n M-l select-pane -R | ||
bind-key -n M-k select-pane -U | ||
bind-key -n M-j select-pane -D | ||
bind-key -n M-h select-pane -L | ||
bind-key -n M-l select-pane -R | ||
|
||
# vim pane switching | ||
bind h select-pane -L | ||
bind j select-pane -D | ||
bind k select-pane -U | ||
bind l select-pane -R | ||
bind-key h select-pane -L | ||
bind-key j select-pane -D | ||
bind-key k select-pane -U | ||
bind-key l select-pane -R | ||
|
||
# twm style keys to resize | ||
bind -n M-C-k resize-pane -U 1 | ||
bind -n M-C-j resize-pane -D 1 | ||
bind -n M-C-h resize-pane -L 1 | ||
bind -n M-C-l resize-pane -R 1 | ||
bind-key -n M-C-k resize-pane -U 1 | ||
bind-key -n M-C-j resize-pane -D 1 | ||
bind-key -n M-C-h resize-pane -L 1 | ||
bind-key -n M-C-l resize-pane -R 1 | ||
|
||
# vim style keys to resize | ||
bind -r - resize-pane -U 1 | ||
bind -r + resize-pane -D 1 | ||
bind -r > resize-pane -L 1 | ||
bind -r < resize-pane -R 1 | ||
bind-key -r - resize-pane -U 1 | ||
bind-key -r + resize-pane -D 1 | ||
bind-key -r > resize-pane -L 1 | ||
bind-key -r < resize-pane -R 1 | ||
|
||
# kill pane | ||
bind -n M-q kill-pane | ||
bind-key -n M-q kill-pane | ||
|
||
# vim style move panes | ||
bind K swap-pane -U | ||
bind J swap-pane -D | ||
bind L swap-pane -U | ||
bind H swap-pane -D | ||
bind-key K swap-pane -U | ||
bind-key J swap-pane -D | ||
bind-key L swap-pane -U | ||
bind-key H swap-pane -D | ||
|
||
# fetch pane | ||
bind F choose-window "join-pane -s '%%'" | ||
bind-key F choose-window "join-pane -s '%%'" | ||
|
||
# send pane | ||
bind S command-prompt -p "send pane to:" "join-pane -t '%%'" | ||
bind-key S command-prompt -p "send pane to:" "join-pane -t '%%'" | ||
|
||
# reload config file | ||
bind -r r source-file ~/.config/tmux/tmux.conf | ||
bind-key r source-file ~/.config/tmux/tmux.conf | ||
|
||
set -g status-style 'bg=#333333 fg=#5eacd3' | ||
set-option -g status-style 'bg=#333333 fg=#5eacd3' |