Skip to content

Instantly share code, notes, and snippets.

@Ajeo
Created December 17, 2013 14:40
Show Gist options
  • Save Ajeo/8005884 to your computer and use it in GitHub Desktop.
Save Ajeo/8005884 to your computer and use it in GitHub Desktop.
set -g default-terminal "screen-256color"
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set-option -g default-command "reattach-to-user-namespace -l zsh"
set -g history-limit 20000
set-option -ga update-environment ' LANG'
set-option -ga update-environment ' LC_ALL'
# use VI
set-window-option -g mode-keys vi
# Use ctrl-a instead of ctrl-b
set -g prefix C-d
unbind C-b
bind C-d send-prefix
# reload config
unbind r
bind r source-file ~/.tmux.conf
unbind ^T
bind ^T split-window -p 25
# horizontal and vertical splits
unbind |
bind | split-window -h
unbind _
bind _ split-window
# tile all windows
unbind =
bind = select-layout tiled
# cycle through panes
unbind ^D
bind ^D select-pane -t :.+
unbind Right
bind -r Right resize-pane -R 8
unbind Left
bind -r Left resize-pane -L 8
unbind Up
bind -r Up resize-pane -U 4
unbind Down
bind -r Down resize-pane -D 4
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l
bind l select-pane -R
# status bar
set -g status-bg black
set -g status-fg white
set -g status-interval 1
set -g status-right-length 60
set -g status-left ' '
set -g status-right "#(/usr/bin/battery tmux) #[fg=yellow]%d-%m-%y %H:%M#[default] "
set-window-option -g window-status-current-bg yellow
set-window-option -g window-status-current-fg yellow
# to speed-up vim
#set-option -s escape-time 10
set -sg escape-time 0
# set base index for windows and panes
set -g base-index 1
setw -g pane-base-index 1
# command for reload tmux.conf
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# handling the mouse
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# changing pane divider colors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment