Skip to content

Instantly share code, notes, and snippets.

@bandarji
Created November 11, 2018 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bandarji/70fac2020df7205efc5cc55b56e52c49 to your computer and use it in GitHub Desktop.
Save bandarji/70fac2020df7205efc5cc55b56e52c49 to your computer and use it in GitHub Desktop.
set -g default-terminal "screen-256color"
# change prefix command to C-z
set -g prefix C-z
unbind C-b
bind C-z last-window
bind z send-prefix
# Turn on mouse support
setw -g mouse 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
# setup | and - for window splitting
unbind %
bind | split-window -h
bind - split-window -v
# colors
set -g default-terminal "screen-256color"
# title
set -g set-titles on
set -g set-titles-string '#T'
#set -g status-justify centre
# start window numbering at 1 for easier switching
set -g base-index 1
setw -g pane-base-index 1
# start numbering at 1
set -g base-index 1
# default statusbar colors
set-option -g status-bg colour0
set-option -g status-fg colour7
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour6
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
set-window-option -g automatic-rename on
# active window title colors
setw -g window-status-current-format "|#I:#W|"
set-window-option -g window-status-current-fg colour4
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment