Skip to content

Instantly share code, notes, and snippets.

@nandavelugoti
Last active February 22, 2020 22:42
Show Gist options
  • Save nandavelugoti/b62cb4556db47f5c5675806fa439c2a3 to your computer and use it in GitHub Desktop.
Save nandavelugoti/b62cb4556db47f5c5675806fa439c2a3 to your computer and use it in GitHub Desktop.
My Tmux Configuration
# Config taken from https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# 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
# Enable mouse control (clickable windows, panes, resizable panes)
#set -g mouse-select-window on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
# Update for tmux 2.1: Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# https://unix.stackexchange.com/questions/1045/getting-256-colors-to-work-in-tmux
#set -g default-terminal "screen-256color"
#######################
# Tmux Plugin Manager #
#######################
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# tmux-onedark-theme: https://github.com/nandavelugoti/tmux-onedark-theme
set -g @plugin 'odedlaz/tmux-onedark-theme'
set -g @onedark_date_format "%D"
# Tmux Sidebar: https://github.com/tmux-plugins/tmux-sidebar
set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @sidebar-tree-command 'tree -c'
# tmux-yank: https://github.com/tmux-plugins/tmux-yank
set -g @plugin 'tmux-plugins/tmux-yank'
# Tmux Themepack: https://github.com/jimeh/tmux-themepack
#set -g @plugin 'jimeh/tmux-themepack'
# Solarize color theme tmux configuration: https://github.com/seebi/tmux-colors-solarized
#set -g @plugin 'seebi/tmux-colors-solarized'
#set -g @colors-solarized 'dark'
# tmux-tomorrow: https://github.com/edouard-lopez/tmux-tomorrow/
#set -g default-terminal "screen-256color" # Setting the correct term
#source-file ~/.tmux/themes/tomorrow-night.tmux
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment