Skip to content

Instantly share code, notes, and snippets.

@zacharyp
Created September 1, 2016 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zacharyp/452e5a5678ef6b6a57ea8ea736c8eece to your computer and use it in GitHub Desktop.
Save zacharyp/452e5a5678ef6b6a57ea8ea736c8eece to your computer and use it in GitHub Desktop.
file .tmux.conf
# set the command prefix to `
set -g prefix "`"
unbind-key C-b
bind-key "`" send-prefix
set -g default-shell /bin/bash
set -g default-command bash
set -g status-fg white
set -g status-bg black
set -g status-attr default
set -g status-right "#(uptime|awk '{print $11}') #(date)"
set -g display-time 3000
# set key mode to vi, of course
set-window-option -g mode-keys vi
#set-window-option -g mode-mouse on
# start window indexing at 1 (not 0)
set -g base-index 1
# open a man page in a new split window
bind / command-prompt "split-window 'exec man %%'"
# quick view of processes
bind "~" split-window "exec htop"
# ctrl+left/right cycles thru windows
bind-key -n C-right next
bind-key -n C-left prev
# more straightforward bindings to split windows
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# history
set -g history-limit 1000
# Terminal emulator window title
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
# Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
# Highlighting the active window in status bar
setw -g window-status-current-bg red
# allow using Page Up/Down for scrollback
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# enable using the mouse to copy and paste stuff
# setw -g mode-mouse on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment