Skip to content

Instantly share code, notes, and snippets.

@vibhavsinha
Created February 14, 2017 12:25
Show Gist options
  • Save vibhavsinha/8cc56baa6c1ef6961a73423113bb6a32 to your computer and use it in GitHub Desktop.
Save vibhavsinha/8cc56baa6c1ef6961a73423113bb6a32 to your computer and use it in GitHub Desktop.
tmux configuration
# for Vim user, this makes navigation easier
setw -g mode-keys vi # I especially like being able to search with /,? when in copy-mode
bind-key C-y run "tmux show-buffer | xclip -sel clip -i" \;
bind-key -n C-Left previous-window
bind-key -n C-Right next-window
#shift arrow to change panes
bind-key -n S-Left select-pane -L
bind-key -n S-Right select-pane -R
bind-key -n S-Up select-pane -U
bind-key -n S-Down select-pane -D
set -g status-right "#(battery Discharging; battery Charging) | %e %B %R"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-battery'
#set -g @resurrect-save-bash-history 'on'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# set the panes to copy same path
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
run-shell "powerline-daemon -q"
source "~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
unbind C-b
set-option -g prefix2 C-x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment