Last active
November 10, 2016 14:44
-
-
Save shahril96/09c4d1b603e715cc06979f2fe98b2501 to your computer and use it in GitHub Desktop.
My global tmux.conf
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 ctrl-b for sending prefix | |
set-option -g prefix ^B | |
bind-key ^B send-keys ^B | |
set -g default-terminal "screen-256color" | |
bind | split-window -h | |
bind - split-window -v | |
bind N break-pane | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg white | |
# Highlight active window | |
set-window-option -g window-status-current-bg blue | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Automatically set window title | |
setw -g automatic-rename | |
set -g mouse on | |
# to enable mouse scroll, see https://github.com/tmux/tmux/issues/145#issuecomment-150736967 | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" | |
# move around panes with hjkl, as one would in vim after pressing ctrl-w | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# resize panes | |
# use ctrl+[HJKL] to resize | |
bind -r ^L resize-pane -R 10 | |
bind -r ^J resize-pane -D 10 | |
bind -r ^K resize-pane -U 10 | |
bind -r ^H resize-pane -L 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment