Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # change default command binding
- unbind C-b
- set -g prefix C-a
- set-option -ga terminal-overrides ",xterm-256color:Tc"
- #set -g default-terminal "screen-256color"
- # but send it through if pressed twice (i.e. using screen in an ssh session)
- #bind C-a send-prefix
- # Reload the config with a swift motion
- bind r source-file ~/.tmux.conf \; display "Reloaded tmux config."
- # Split the windows
- bind | split-window -h -c "#{pane_current_path}"
- bind - split-window -v -c "#{pane_current_path}"
- bind c new-window -c "#{pane_current_path}"
- # Switch the windows
- bind -n C-Right next-window
- bind -n C-Left previous-window
- # easily toggle synchronization (mnemonic: e is for echo)
- # sends input to all panes in a given window.
- bind e setw synchronize-panes on
- bind E setw synchronize-panes off
- # Make the current window the first window
- bind T swap-window -t 1
- # Prevent pauses in Vim, etc
- set -sg escape-time 0
- # Longer history
- set -g history-limit 5000
- # mouse support
- set -g mouse on
- set-option -g status on
- set-option -g status-interval 10
- set-option -g status-justify centre
- set-option -g status-left-length 120
- set-option -g status-right-length 120
- set-option -g status-position bottom # position the status bar at bottom of screen
- set -g default-shell $SHELL
- # change the central status element colours here
- set-window-option -g window-status-current-format "#[fg=colour234, bg=colour145]⮀#[fg=colour234, bg=colour145] #I ⮁ #W #[fg=colour145, bg=colour234]⮀"
- # default statusbar colors
- set-option -g status-bg colour234 #base02
- set-option -g status-fg colour130 #yellow
- set-option -g status-attr default
- # default window title colors
- set-window-option -g window-status-fg colour8 #base0
- set-window-option -g window-status-bg colour234
- set-window-option -g window-status-attr dim
- # active window title colors
- #set-window-option -g window-status-current-fg colour196 #orange
- #set-window-option -g window-status-current-bg colour234
- #set-window-option -g window-status-current-attr bright
- # pane border
- set-option -g pane-border-fg colour234 #base02
- set-option -g pane-active-border-fg colour226 #base01
- # message text
- set-option -g message-bg colour234 #base02
- set-option -g message-fg colour196 #orange
- # pane number display
- set-option -g display-panes-active-colour colour20 #blue
- set-option -g display-panes-colour colour196 #orange
- # clock
- set-window-option -g clock-mode-colour colour40 #green
- # renumber windows automatically
- set-option -g renumber-windows on
- # switch panes using Alt-arrow without prefix
- bind -n M-Left select-pane -L
- bind -n M-Right select-pane -R
- bind -n M-Up select-pane -U
- bind -n M-Down select-pane -D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement