Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike English (old) gazoombo

View GitHub Profile
@gazoombo
gazoombo / .tmux.conf
Created Jan 27, 2012
My current ~/.tmux.conf
View .tmux.conf
# Solarized colorscheme/theme from
source-file git/github/tmux-colors-solarized/tmuxcolors.conf
# Report that we can handle 256 colors
set -g default-terminal "screen-256color"
# Rebind prefix to avoid conflicts
#unbind C-b
#set -g prefix C-q
#bind C-q send-prefix
@gazoombo
gazoombo / .tmux.conf
Created Jan 27, 2012
use xterm mouse reporting in tmux
View .tmux.conf
# Just click it
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-resize-pane on
# Scroll your way into copy mode (scrollback buffer)
# and select text for copying with the mouse
setw -g mode-mouse on
@gazoombo
gazoombo / .tmux.conf
Created Jan 27, 2012
vim keybindings for tmux
View .tmux.conf
# I'm a Vim user, this makes navigation easier
setw -g mode-keys vi # I especially like being able to search with /,? when in copy-mode
unbind-key j
bind-key j select-pane -D # Similar to 'C-w j' to navigate windows in Vim
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
View .tmux.conf
unbind C-b
set -g prefix C-a
bind C-a send-prefix
@gazoombo
gazoombo / .profile
Created Jan 27, 2012
Aliases for shared tmux sessions
View .profile
alias tmuxmulti="if tmux -S /tmp/multi has -t AO-PPS; then reattach-to-user-namespace tmux -S /tmp/multi attach; else reattach-to-user-namespace tmux -S /tmp/multi new -s AO-PPS; fi"
alias tmuxer="ssh username@xxx.xxx.xxx.xxx -t '/opt/local/bin/tmux -S /tmp/multi attach'"