Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Created June 16, 2017 19:28
Show Gist options
  • Select an option

  • Save jcpowermac/9eac5ee4e5ea9fbd04cb2364debd69f8 to your computer and use it in GitHub Desktop.

Select an option

Save jcpowermac/9eac5ee4e5ea9fbd04cb2364debd69f8 to your computer and use it in GitHub Desktop.
setw -g mode-keys vi
# set Zsh as your default Tmux shell
set-option -g default-shell /bin/zsh
# UTF is great, let us use that
#set -g utf8
#set-window-option -g utf8 on
# Tmux should be pretty, we need 256 color for that
set -g default-terminal "screen-256color"
# Tmux uses a 'control key', let's set it to 'Ctrl-a'
# Reason: 'Ctrl-a' is easier to reach than 'Ctrl-b'
set -g prefix C-a
unbind C-b
# command delay? We don't want that, make it short
set -sg escape-time 1
# Set the numbering of windows to go from 1 instead
# of 0 - silly programmers :|
set-option -g base-index 1
setw -g pane-base-index 1
# Allow us to reload our Tmux configuration while
# using Tmux
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Getting interesting now, we use the vertical and horizontal
# symbols to split the screen
bind | split-window -h
bind - split-window -v
source "/usr/share/tmux/powerline.conf"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment