Skip to content

Instantly share code, notes, and snippets.

@tamphh
Created June 21, 2018 04:04
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 tamphh/a765909583dd1d5fb795d4a753ec9506 to your computer and use it in GitHub Desktop.
Save tamphh/a765909583dd1d5fb795d4a753ec9506 to your computer and use it in GitHub Desktop.
tmux customization
#change prefix from C-b to C-a
unbind C-b
set -g prefix C-a
#theme
set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
#-------------------------------------------------------#
##STATUS LINE/MESSAGES AT BOTTOM
#-------------------------------------------------------#
# set -g status-right '#H'
# set -g status-right "%I:%M %p "
# Start window numbering at 1
set -g base-index 1
#-------------------------------------------------------#
#Pane colours
#-------------------------------------------------------#
# set inactive/active window styles
set -g window-style "fg=default,bg=default"
set -g window-active-style 'fg=default,bg=default'
#pane border
set -g pane-border-bg colour235
set -g pane-border-fg colour238
set -g pane-active-border-bg colour236
set -g pane-active-border-fg colour51
# Split panes
bind-key "/" split-window -h -c "#{pane_current_path}"
# tig
bind-key C-t new-window -c "#{pane_current_path}" -n tig "tig status"
# tmux plugin manager - Put this at the bottom of .tmux.conf:
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
# Themes - Nord
set -g @plugin 'arcticicestudio/nord-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'
set -g status-right ''
# 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