Skip to content

Instantly share code, notes, and snippets.

@gadogado
Created January 19, 2015 21:44
Show Gist options
  • Save gadogado/3b8feaa65861d29c29e4 to your computer and use it in GitHub Desktop.
Save gadogado/3b8feaa65861d29c29e4 to your computer and use it in GitHub Desktop.
tmux.conf
# mouse support
setw -g mode-mouse on
set -g mouse-utf8 on
set -g mouse-select-pane on
set -g mouse-select-window on
set -g mouse-select-pane on
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# Center the window list
set -g status-justify centre
# color
set -g default-terminal "xterm-256color"
set -g history-limit 10000
set -g status-interval 60
# status config
set -g status-utf8 on
set -g status-position top
set -g status-fg colour15
set -g status-bg colour24
# status line left side
#set -g status-left-length 40
#set -g status-left "#[fg=colour214,bold] #S #[fg=colour45]"
# no more machine counting
set -g base-index 1
setw -g pane-base-index 1
# window list colors
#setw -g window-status-fg colour250
setw -g window-status-bg default
setw -g window-status-format " #W "
setw -g window-status-current-format " #W "
#setw -g window-status-current-fg colour118
#setw -g window-status-current-bg default
setw -g window-status-activity-attr underscore,bold
# center the window list
set -g status-justify left
# pane colors
set -g pane-border-fg colour24
set -g pane-border-bg default
set -g pane-active-border-fg colour15
set -g pane-active-border-bg colour15
# command / message line colors
set -g message-fg colour15
set -g message-bg black
set -g message-attr bright
# rebind clear screen with Ctrl-l
bind C-l send-keys 'C-l'
# reload tmux conf
bind r source-file ~/.tmux.conf \; display "Reloaded tmux.conf!"
# setup reattach-to-user-namespace for copy and paste
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# setup 'v' to begin selection as in vim
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# update default binding of 'enter' to also use copy-pipe
unbind -t vi-copy Enter
bind -t vi-copy enter copy-pipe "reattach-to-user-namespace pbcopy"
# splitting panes
bind | split-window -h
bind - split-window -v
# fast resizing (-r for repeatable)
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
#
set-option -g default-command "reattach-to-user-namespace -l bash"
# tmuxinator
#set-option -g base-index 1
#set-window-option -g pane-base-index 1
#set-window-option -g main-pane-height 35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment