Created
March 14, 2019 15:21
-
-
Save x7c1/b144a6425f1582e6dca897764ffe5e0b to your computer and use it in GitHub Desktop.
.tmux.conf
This file contains hidden or 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
| # set-option -g default-shell /bin/zsh | |
| set -g prefix C-t | |
| set -g history-limit 2000 | |
| # key speed | |
| set -s escape-time 0 | |
| set-option -g repeat-time 1000 | |
| # highlight active window | |
| setw -g window-status-current-fg white | |
| setw -g window-status-current-bg blue | |
| setw -g window-status-current-attr bright | |
| # status color | |
| set-option -g status-bg "colour238" # dark gray | |
| set-option -g status-fg "colour255" # white | |
| # for gnome-terminal | |
| # rf. https://unix.stackexchange.com/a/349020 | |
| set-option -s set-clipboard off | |
| # ex. 2019-03-14 Thu 22:13 | |
| set-option -g status-right '%Y-%m-%d %a %H:%M ' | |
| # update status every 60 [sec] | |
| set-option -g status-interval 60 | |
| # reload | |
| bind r source-file ~/.tmux.conf \; display "Reloaded." | |
| # window | |
| bind ^t last-window | |
| bind ^p select-window -t :- | |
| bind ^n select-window -t :+ | |
| bind \ split-window -h | |
| bind - split-window -v | |
| # pane | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| bind -r ^h resize-pane -L 2 | |
| bind -r ^j resize-pane -D 2 | |
| bind -r ^k resize-pane -U 2 | |
| bind -r ^l resize-pane -R 2 | |
| # copy & paste | |
| setw -g mode-keys vi | |
| bind -T copy-mode-vi v send -X begin-selection | |
| bind -T copy-mode-vi V send -X select-line | |
| bind -T copy-mode-vi C-v send -X rectangle-toggle | |
| bind -T copy-mode-vi y send -X copy-pipe 'xclip -selection clipboard >/dev/null' | |
| bind p paste-buffer | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment