Skip to content

Instantly share code, notes, and snippets.

@devel787
Created December 7, 2016 08:19
Show Gist options
  • Save devel787/7c73bd09aec8a4bc41f21778e3f44d3f to your computer and use it in GitHub Desktop.
Save devel787/7c73bd09aec8a4bc41f21778e3f44d3f to your computer and use it in GitHub Desktop.
tmux config
vim ~/.tmux.conf
----
################################################################
## https://www.digitalocean.com/community/tutorials/how-to-configure-tmux-on-a-cloud-server
# Ctrl-b is a bad prefix key, use Ctrl-a instead
set-option -g prefix C-a
unbind-key C-b
# Also assign Ctrl-a to send the prefix to a remote session
bind-key C-a send-prefix
# Windows should be numbered from 1 like panes
set -g base-index 1
# Disable tmux waiting for an escape sequence
set-option -sg escape-time 0
##
################################################################
################################################################
## https://learnxinyminutes.com/docs/tmux/
# Force reload of config file
unbind r
# extra config from http://pastebin.com/t8ns0YR7
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Return to previous window when prefix is pressed twice
bind C-a last-window
# Mouse
# set-option -g -q mouse on
##
################################################################
#
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment