You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.9 KiB
Plaintext

11 years ago
# Use a 256 color terminal
set -g default-terminal "screen-256color"
# zsh
set-option -g default-shell $SHELL
11 years ago
# bind default prefix to ctrl-a
set -g prefix C-a
unbind-key C-b
bind-key a send-prefix
# use vim motions :-)
setw -g mode-keys vi
# copy & paste shortcut
unbind [
unbind p
bind Escape copy-mode
bind p paste-buffer
# reparing copy & paste
11 years ago
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Fix for sending keys to Vim
setw -g xterm-keys on
11 years ago
# set esc-timeout to 50ms (better vim)
set -sg escape-time 50
# Force a reload of te config file
unbind-key r
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded!"
# Saner window splitting
unbind %
bind \ split-window -h
bind - split-window -v
11 years ago
# Easier resizing
unbind-key -n C-j
unbind-key -n C-k
unbind-key -n C-h
unbind-key -n C-l
11 years ago
bind-key -r C-j resize-pane -D
bind-key -r C-k resize-pane -U
bind-key -r C-h resize-pane -L
bind-key -r C-l resize-pane -R
# Navigation
11 years ago
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
# Mouse support
set -g mouse-select-pane on
set -g mouse-select-window on
set -g mouse-resize-pane on
setw -g mode-mouse on
11 years ago
# counting panes starts at 1
set -g base-index 1
setw -g pane-base-index 1
# How long should we show any messages?
set -g display-time 2000
11 years ago
11 years ago
# statusbar colors solarized dark
11 years ago
set-option -g status-bg black
set-option -g status-fg yellow
set-option -g status-attr default
set-window-option -g window-status-fg brightblue
set-window-option -g window-status-bg default
set-window-option -g window-status-current-fg brightred
set-window-option -g window-status-current-bg default
set-option -g pane-border-fg black
set-option -g pane-active-border-fg brightgreen
set-option -g message-bg black
set-option -g message-fg brightred
set-option -g display-panes-active-colour blue
set-option -g display-panes-colour brightred
set-window-option -g clock-mode-colour green
11 years ago
# Custom status bar - with Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left-length 60
11 years ago
set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] ⣿ #P #[fg=colour238,bg=default,nobold]⮀'
set -g status-right '#[fg=colour238,bg=default,nobold]⮂#[fg=colour245,bg=colour238] #(whoami)@#h #[fg=colour252]⮂#[fg=colour235,bg=colour252,bold] ○ #(date +"%H:%M") '
set -g window-status-format "#[fg=base0,bg=default] #I #W "
set -g window-status-current-format "#[fg=black,bg=brightred]⮀#[fg=colour251,bg=brightred,noreverse,bold] #I ⮁ #W #[fg=brightred,bg=black,nobold]⮀"