Skip to content

Instantly share code, notes, and snippets.

@toshism
Last active February 8, 2016 19:24
Show Gist options
  • Save toshism/2858174ef480af3e3177 to your computer and use it in GitHub Desktop.
Save toshism/2858174ef480af3e3177 to your computer and use it in GitHub Desktop.
tmux configuration
# ~/.tmux.conf
set -g default-terminal "screen-256color"
set-window-option -g mode-keys emacs
# start window numbers at 1. 0 is so far over there
set -g base-index 1
set-window-option -g pane-base-index 1
# no delay for escape, this was very annoying in emacs/vim
set -s escape-time 0
# set prefix to C-j instead of C-b
unbind C-b
set-option -g prefix C-j
# C-j C-j to switch to last active window (like screen)
bind-key C-j last-window
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# tab messes up bash complete
unbind Tab
unbind Btab
# bind Tab choose-window
# Set status bar
#set -g status-bg colour235
#set -g status-fg colour33
#set -g status-left-length 50
#set -g status-left '#[fg=green]#S@#h:#[fg=default]'
# Highlight active window
#set-window-option -g window-status-current-fg colour9
#set-window-option -g window-status-current-bg default
# activity alert
#set-option -gw window-status-activity-attr bold
#set-option -gw window-status-activity-bg default
# set-option -gw window-status-activity-fg colour333
# right side of status bar
#set -g status-right '#[fg=white][ #[fg=colour33]%Y-%m-%d #[fg=colour9]%H:%M#[fg=white] ]'
# Set window notifications
set -g monitor-activity on
set -g visual-activity on
# Automatically set window title
setw -g automatic-rename
# pane stuff
# stump-ish window splitting
unbind % # Remove default binding
bind s split-window -h
bind S split-window -v
# move panes
bind-key h choose-window 'join-pane -v -s "%%"'
bind-key v choose-window 'join-pane -h -s "%%"'
bind-key B break-pane
# resize panes
bind-key < resize-pane -L 10
bind-key > resize-pane -R 10
bind-key ^ resize-pane -U 10
bind-key \ resize-pane -D 10
run-shell "powerline-daemon -q"
source "/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment