Created
June 23, 2016 18:27
-
-
Save k4rtik/023fc607b31ac8feb5563c0ace77c475 to your computer and use it in GitHub Desktop.
This file contains 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
# We want to set the prefix to C-a. C-b is kind of awkward. C-a works well if | |
# CAPSLOCK is remapped to Ctrl. | |
set -g prefix C-a | |
unbind C-b | |
# We want to imitate WMs like i3 and allow tmux to reload its config in a few | |
# keystrokes. | |
bind r source-file ~/.tmux.conf | |
# We never want to use the mouse. | |
#setw -g mode-mouse off | |
# If we don't set this tmux screws up the appearance of vim's syntax | |
# highlighting. | |
set -g default-terminal "screen-256color" | |
## We set the tmux colors to Solarized | |
## Lifted from https://github.com/seebi/tmux-colors-solarized | |
# default statusbar colors | |
#set-option -g status-bg colour235 #base02 | |
#set-option -g status-fg colour130 #yellow | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour33 #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 colour196 #orange | |
set-window-option -g window-status-current-bg default | |
#set-window-option -g window-status-current-attr bright | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg white | |
#set -g status-left "" | |
#set -g status-right "#[fg=green]#H" | |
# pane border | |
set-option -g pane-border-fg colour235 #base02 | |
set-option -g pane-active-border-fg colour46 #base01 | |
# message text | |
set-option -g message-bg colour235 #base02 | |
set-option -g message-fg colour196 #orange | |
# pane number display | |
set-option -g display-panes-active-colour colour20 #blue | |
set-option -g display-panes-colour colour196 #orange | |
# clock | |
set-window-option -g clock-mode-colour colour40 #green | |
# Center the status bar | |
set -g status-justify centre | |
# Highlight windows that have activity on them | |
setw -g monitor-activity on | |
set -g visual-activity on | |
## End of visual settings | |
# Some faster keys for window-splitting | |
bind = split-window -h | |
bind - split-window -v | |
# Vim movement keys instead of arrows | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Vim movement key for 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 | |
# use vim mode keys | |
set -g mode-keys vi | |
# last window hack | |
bind-key C-a last-window | |
# start window numbering at 1 | |
set -g base-index 1 | |
set-option -g history-limit 10000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment