Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # basics
- set -g default-terminal "screen-256color"
- set -g prefix C-a
- set -sg escape-time 0
- # let's free the original prefix
- unbind C-b
- # make sure we can send prefix to other apps
- bind C-a send-prefix
- # set pane and window index starts to 1
- set -g base-index 1
- setw -g pane-base-index 1
- # reload the file with Prefix r
- bind R source-file ~/.tmux.conf \; display "Reloaded!"
- # time to read status messages, etc.
- set -sg display-time 2000
- # start a tmuxinator session
- unbind /
- bind / command-prompt "run-shell 'tmuxinator start %%'"
- # Sessions
- unbind s
- unbind \;
- bind \; choose-session
- # Windows
- unbind w
- unbind "'"
- bind "'" choose-window
- bind a last-window
- # Splits
- unbind %
- bind | split-window -h
- bind - split-window -v
- # Moving between panes
- bind h select-pane -L
- bind j select-pane -D
- bind k select-pane -U
- bind l select-pane -R
- # Forward / backward windows
- bind -r C-h select-window -t :-
- bind -r C-l select-window -t :+
- # Resizing
- 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
- # vi mode
- setw -g xterm-keys on
- setw -g mode-keys vi
- set -g status-keys emacs # as I'm used to this in prompts
- ## enable mouse
- setw -g mode-mouse on
- set -g mouse-select-pane on
- set -g mouse-select-window on
- set -g mouse-resize-pane on
- set -g mouse-utf8 on
- # activity
- setw -g monitor-activity on
- set -g visual-activity on
- set -g visual-content on
- # history
- set -g history-limit 8192
- # copy/paste w/ system clipboard
- set -g default-command "reattach-to-user-namespace -l /usr/local/bin/zsh"
- bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
- bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer"
- # do not allow automatic renaming
- setw -g automatic-rename off
- setw -g allow-rename off
- bind A command-prompt "rename-window %%"
- # tmux window titling for X
- set -g set-titles on
- set -g set-titles-string '[#I] #W'
- setw -g window-status-format '❨#I #W #F❩'
- setw -g window-status-current-format '❮#I #W #F❯'
- setw -g window-status-attr bold
- # Theme
- #
- # SOLARIZED TERMCOLOR XTERM
- # --------- ------------- -----
- # base03 brightblack 234
- # base02 black 235
- # base01 brightgreen 240
- # base00 brightyellow 241
- # base0 brightblue 244
- # base1 brightcyan 245
- # base2 white 254
- # base3 brightwhite 230
- # yellow yellow 136
- # orange brightred 166
- # red red 160
- # magenta magenta 125
- # violet brightmagenta 61
- # blue blue 33
- # cyan cyan 37
- # green green 64
- # default statusbar
- set -g status-utf8 on
- set -g status-bg colour235
- set -g status-fg colour245
- set -g status-attr default
- set -g status-left '#[bg=colour33,fg=colour254,bold] #S #[bg=colour235,fg=colour33]⮀#[default]'
- set -g status-right '⮃ #(whoami)@#h %Y-%m-%d %H:%M '
- # default window title colors
- setw -g window-status-fg colour235
- setw -g window-status-bg default
- #setw -g window-status-attr dim
- # active window title colors
- setw -g window-status-current-fg colour33
- setw -g window-status-current-bg default
- #setw -g window-status-current-attr bright
- # pane border
- set -g pane-border-fg colour235
- set -g pane-active-border-fg colour240
- # message text
- set -g message-bg colour254
- set -g message-fg colour240
- set -g message-attr bold
- # command mode
- set -g message-command-bg colour254
- set -g message-command-fg colour240
- set -g message-command-attr bold
- # pane number display
- set -g display-panes-active-colour colour33
- set -g display-panes-colour colour166
- # clock
- setw -g clock-mode-colour colour64
Add Comment
Please, Sign In to add comment