Created
May 6, 2020 10:43
-
-
Save amirrajan/323c6159e57af6dd2849b0a7859a79b8 to your computer and use it in GitHub Desktop.
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
set -g mouse on | |
set -g prefix C-a | |
set -g display-time 4000 | |
set -g display-panes-time 4000 | |
bind a send-prefix | |
unbind C-b | |
unbind C-m | |
unbind C-a | |
unbind C-j | |
unbind C-l | |
unbind C-h | |
bind j display-panes | |
bind m setw synchronize-panes | |
bind C-a last-window | |
set -s escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
bind C-a send-prefix | |
bind | split-window -h | |
bind - split-window -v | |
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$|emacs.*$' && tmux send-keys C-h) || tmux select-pane -L" | |
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$|emacs.*$' && tmux send-keys C-j) || tmux select-pane -D" | |
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$|emacs.*$' && tmux send-keys C-k) || tmux select-pane -U" | |
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$|emacs.*$' && tmux send-keys C-l) || tmux select-pane -R" | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
set -g default-terminal "screen-256color" | |
set-option -g default-command "reattach-to-user-namespace -l $SHELL" | |
setw -g mode-keys vi | |
unbind [ | |
bind Escape copy-mode | |
unbind p | |
bind p paste-buffer | |
unbind -T copy-mode-vi Space | |
unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
set -s -g escape-time 0 | |
unbind-key -T copy-mode-vi C-v ; bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle | |
set-option -g history-limit 50000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment