Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Use ^A instead of ^B by default
- unbind C-b
- set -g prefix C-a
- bind C-a send-prefix
- # correct terminal
- set -g default-terminal screen-256color
- set-window-option -g mode-keys vi
- # Copy to X clipboard
- #run-shell ~/.config/tmux/tmux-yank/yank.tmux
- bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
- # Toggle mouse
- bind-key m set-option -g mouse on \; display 'Mouse: ON'
- bind-key M set-option -g mouse off \; display 'Mouse: OFF'
- # Some bindings to make it more comfortable
- bind x kill-pane
- bind X kill-window
- bind - split-window -v
- bind | split-window -h
- bind \ split-window -h
- # swap panes
- bind-key -r J swap-pane -D
- bind-key -r K swap-pane -U
- # Renumber windows if one is killed
- set-option -g renumber-windows on
- # prefix+j/k to switch pane
- bind j select-pane -t :.+
- bind k select-pane -t :.-
- # prefix+h/l to switch window
- bind l select-window -t :+
- bind h select-window -t :-
- # remove esc delay
- set -s escape-time 0
- # disable status bar
- #set -g status off
- # Start windows and panes at 1, not 0
- set -g base-index 1
- setw -g pane-base-index 1
- # Statusbar
- set -g status-position bottom
- set -g status-interval 4
- set -g status-left ''
- set -g status-right ''
- set -g status-justify centre # center align window list
- setw -g status-style ''
- setw -g window-status-format '#[bg=white,fg=white,bright] #I #[bg=white,fg=white,bright,reverse] #W '
- setw -g window-status-current-format '#[fg=white,bg=cyan] #I #[fg=cyan,bg=default] #W '
- # Panel borders
- set -g pane-active-border-fg cyan
- set -g pane-active-border-bg default
- set -g pane-border-fg black
- set -g pane-border-bg default
- # Window titles
- set -g set-titles on
- setw -g automatic-rename on
- setw -g allow-rename on
- set -g base-index 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement