Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (54 sloc) 1.61 KB
##
# tmux.conf
# Brandon Burton, 2014
# Thanks to the following for inspiration
# - https://github.com/mrtazz/dotfiles/blob/master/tmux.conf
# - https://gist.github.com/fujin/4a09d6113edcac7d9cef
##
# osx fix
set-option -g default-command "reattach-to-user-namespace -l zsh"
# tmuxline config
if-shell "test -f $HOME/.tmuxline.conf" "source $HOME/.tmuxline.conf"
# mouse mode
#set -g mouse on
# First step, set the default-terminal
set -g default-terminal "screen-256color"
set -g history-limit 100000
# Let's rebind some things
# remap prefix to Control + a
unbind C-b
set -g prefix C-a
# We still want to be able to send C-a
# though to shells to get to the
# beginning of a line
bind a send-keys C-a
# Ctrl-c helper for gnome-terminal
bind c send-keys C-c
# Replacement for making a new window
bind-key -n C-n new-window
# Use Prefix-Esc to enter copy mode
bind ESCAPE copy-mode
# map C-q to send the prefix key to nested
# tmux sessions. This requires you have a
# .tmux.conf with C-a for the nested session's
# prefix too
bind q send-prefix
# remap tmux's pane zoom to prefix Z
bind z resize-pane -Z
# easily reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# start window numbering at 1 for easier switching
set -g base-index 1
setw -g pane-base-index 1
# set some unicode defaults
setw -g utf8 on
set -g status-utf8 on
# quick pane cycling with prefix C-A
unbind ^A
bind ^A select-pane -t :.+
# some slightly nicer split shortcuts
bind | split-window -h
bind - split-window -v
# make prefix Tab able to cycle through windows
bind Tab last-window
run-shell ~/code/personal/tmux-resurrect/resurrect.tmux