Skip to content

Instantly share code, notes, and snippets.

@mruoss
Last active April 6, 2017 12:50
Show Gist options
  • Select an option

  • Save mruoss/e9db27249e9473439d28d2bc5fab5b77 to your computer and use it in GitHub Desktop.

Select an option

Save mruoss/e9db27249e9473439d28d2bc5fab5b77 to your computer and use it in GitHub Desktop.
tmux
setw -g mouse on
set -g @scroll-speed-num-lines-per-scroll 5
set -g history-limit 1000
set -g status-interval 1
set -g status-left '#H#[default]'
set -g status-right '#(cut -d ” ” -f 1-4 /proc/loadavg)#[default] #%Y-%m-%d %H:%M:%S#[default]'
setw -g monitor-activity on
set -g visual-activity on
# Setting the prefix from C-b to C-a
set -g prefix C-a
# Free the original Ctrl-b prefix keybinding
unbind C-b
# Setting the delay between prefix and command
set -s escape-time 1
# Ensure that we can send Ctrl-a to other apps
bind C-a send-prefix
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# tmux coloring
set -g default-terminal "screen-256color"
#set inactive/active window styles
set -g window-style 'fg=colour249,bg=colour235'
set -g window-active-style 'fg=colour250,bg=colour236'
# Set the status line's colors
set -g status-fg white
set -g status-bg black
# Set the color of the window list
setw -g window-status-fg colour0
setw -g window-status-bg colour207
setw -g window-status-attr dim
# Set colors for the active window
setw -g window-status-current-fg colour0
setw -g window-status-current-bg colour213
setw -g window-status-current-attr bright
# Pane colors
set -g pane-border-fg colour23
set -g pane-border-bg black
set -g pane-active-border-fg colour200
set -g pane-active-border-bg colour23
# Splitting panes replace % and "
bind | split-window -h
bind - split-window -v
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment