Skip to content

Instantly share code, notes, and snippets.

@otsuarez
Last active January 17, 2019 19:18
Show Gist options
  • Save otsuarez/39ebed3493fdc01bcd664064541b10b4 to your computer and use it in GitHub Desktop.
Save otsuarez/39ebed3493fdc01bcd664064541b10b4 to your computer and use it in GitHub Desktop.
tmux.conf
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
if [[ "$SSH_TTY" != "" ]]
then
if [[ "$TERM" != "screen" ]]; then
screen -dr default
if (($?)); then
screen -ln -S default
fi
fi
fi
set-option -g history-limit 9000
##########################################
# BASIC CONFIG
# utf8 ability
setw -g utf8 on
# vi Style Editing
#setw -g mode-keys vi
# Make mouse useful in copy mode
#setw -g mode-mouse on
# Allow mouse to select which pane to use
#set -g mouse-select-pane on
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
# Scroll History
set -g history-limit 30000
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment