Created
November 18, 2013 18:06
-
-
Save adhipg/7532442 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "screen-256color" | |
set-option -g prefix C-a | |
unbind C-b | |
# Ensure that we can send Ctrl-A to other apps | |
bind C-a send-prefix | |
set -g status-keys vi | |
# this is for the scrolling options | |
setw -g mode-keys vi | |
set-option history-limit 900000 | |
# start naming windows from 1 | |
set-option -g base-index 1 | |
# Set the base index for panes to 1 instead of 0 | |
setw -g pane-base-index 1 | |
# timeout times for vim | |
set-option -sg escape-time 1 | |
# Reload the file with Prefix r | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# splitting panes | |
bind | split-window -h | |
bind - split-window -v | |
# moving between panes | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Quick pane selection | |
#bind -r C-h select-pane -t :- | |
#bind -r C-l select-pane -t :+ | |
# Pane resizing | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
## tmux powerline settings for status bar. | |
set-option -g status on | |
set-option -g status-interval 2 | |
set-option -g status-utf8 on | |
set-option -g status-justify "centre" | |
set-option -g status-left-length 100 | |
set-option -g status-right-length 100 | |
set-option -g status-left "#(~/dotFiles/tmux-powerline/status-left.sh)" | |
set-option -g status-right "#(~/dotFiles/tmux-powerline/status-right.sh)" | |
#### COLOUR (Solarized 256) DARK | |
# default statusbar colors | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour244 #base0 | |
set-window-option -g window-status-bg default | |
#set-window-option -g window-status-attr dim | |
# active window title colors | |
set-window-option -g window-status-current-fg colour166 #orange | |
set-window-option -g window-status-current-bg default | |
#set-window-option -g window-status-current-attr bright | |
# pane border | |
set-option -g pane-border-fg colour235 #base02 | |
set-option -g pane-active-border-fg colour240 #base01 | |
# message text | |
set-option -g message-bg colour235 #base02 | |
set-option -g message-fg colour166 #orange | |
# pane number display | |
set-option -g display-panes-active-colour colour33 #blue | |
set-option -g display-panes-colour colour166 #orange | |
# clock | |
set-window-option -g clock-mode-colour colour64 #green | |
#### End Colours | |
setw -g aggressive-resize on | |
# mouse mode | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# FIXME: fix pbcopy on mac. | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
# renumber windows when I close one. | |
# set-option -g renumber-windows on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment