Skip to content

Instantly share code, notes, and snippets.

@jtsagata
Created July 10, 2012 20:08
Show Gist options
  • Save jtsagata/3085900 to your computer and use it in GitHub Desktop.
Save jtsagata/3085900 to your computer and use it in GitHub Desktop.
Tmux config
# Set the prefix to ^\
unbind C-b
set -g prefix `
bind-key ` send-prefix
# Set delay
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "Config file reloaded!"
# Splitting panels
bind \ split-window -h
bind - split-window -v
bind -n S-Left resize-pane -L 5
bind -n S-Right resize-pane -R 5
bind -n S-Up resize-pane -U 5
bind -n S-Down resize-pane -D 5
# MOUSE
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# Visual activity
setw -g monitor-activity on
set -g visual-activity on
# Status bar
set -g status-justify centre
set -g status-left "#S I #P"
set -g status-right "%d %b %R"
set -g status-utf8 on
setw -g window-status-fg cyan
setw -g window-status-bg white
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
# ~/.tmuxinator/bazzar.yml
# you can make as many tabs as you wish...
project_name: Tmuxinator
project_root: ~/Projects/Velanidi/bazaar/
socket_name: foo # Not needed. Remove to use default socket
rvm: ruby-1.9.3-p194-falcon@velani
#pre: sudo service postgresql start
tabs:
- shell: git status
- console: bundle exec rails console
- logs: tail -f log/development.log
- guard: bundle exec guard -c g frontend
- database: bundle exec rails db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment