Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set -g prefix C-a
- unbind C-b
- bind C-a send-prefix
- set -g mode-keys vi
- set -g default-terminal "screen-256color"
- set -g history-limit 10000
- set -g mouse on
- set -g set-titles on
- set -g set-titles-string "#H:#S.#I.#P #W #T"
- set-window-option -g monitor-activity on
- set -sg escape-time 0
- ## move keys
- bind h select-pane -L
- bind j select-pane -D
- bind k select-pane -U
- bind l select-pane -R
- ## Switch windows
- bind C-j previous-window
- bind C-k next-window
- ## move to a window
- bind -r C-h select-window -t :-
- bind -r C-l select-window -t :+
- ## splits
- bind | split-window -h
- bind - split-window -v
- unbind '"'
- unbind %
- ## resize panes
- setw -g aggressive-resize on
- 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
- ## copy n paste
- bind Escape copy-mode
- unbind p
- bind p paste-buffer
- bind-key -T copy-mode-vi 'v' send -X begin-selection
- bind-key -T copy-mode-vi 'y' send -X copy-selection
- bind-key -T copy-mode-vi 'Space' send -X halfpage-down
- bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up
- unbind r
- bind r source-file ~/.tmux.conf \; display-message "tmux.conf sourced"
- # colors
- setw -g mode-style 'fg=colour51 bg=colour23 '
- setw -g clock-mode-colour colour5
- set -g message-style 'fg=colour51 bg=colour0'
- set -g pane-border-style 'fg=colour51 bg=colour0'
- set -g pane-active-border-style 'fg=colour10 bg=colour0'
- set -g status-style 'fg=colour51 bg=colour0'
- set -g status-left-length 21
- set -g status-right-length 50
- set-option -g status-left '#[fg=colour231] Session #S ❮#[fg=colour205]#I#[fg=colour231]❯ #[fg=magenta] #[fg=magenta,bold]'
- set -g status-right '#[fg=colour231]%R #[fg=colour28] #{client_width}x#{client_height} '
- set-window-option -g window-status-style 'fg=colour51 bg=colour0'
- set-window-option -g window-status-current-style 'fg=magenta bg=black'
- setw -g window-status-current-format '#[fg=colour202]#W#[fg=colour202]-#[fg=colour202]#I '
- setw -g window-status-format ' #[fg=colour231]#W#[fg=colour231]-#[fg=colour231]#I '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement