Skip to content

Instantly share code, notes, and snippets.

@hungys
Created July 13, 2019 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hungys/f7ed9b769f24ee4f53bd7e7e97598705 to your computer and use it in GitHub Desktop.
Save hungys/f7ed9b769f24ee4f53bd7e7e97598705 to your computer and use it in GitHub Desktop.
My tmux config
# Rebind prefix to Ctrl-A
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Bind "r" for reloading configuration
bind r source-file ~/.tmux.conf \; display "Configuration reloaded!"
# Bind "|" for splitting the current window vertically, and "-" for horizontally
unbind %
bind | split-window -h
bind - split-window -v
# Display things in 256 colors
set -g default-terminal "screen-256color"
# Bind "M" for enabling mouse support
bind M \
set-option -g mouse on \;\
display 'Mouse: ON'
# Bind "m" for disabling mouse support
bind m \
set-option -g mouse off \;\
display 'Mouse: OFF'
# Note: hold shift key to select the text using mouse
# Set history size
set -g history-limit 10000
# Renumber windows sequentially after closing
set -g renumber-windows on
# Enable window notifications; display activity on other window
setw -g monitor-activity on
set -g visual-activity on
# Set theme
# From: https://github.com/jimeh/tmux-themepack
source-file "${HOME}/.tmux-themepack/powerline/block/cyan.tmuxtheme"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment