Last active
August 15, 2016 16:12
-
-
Save noodlehaus/610154e0d23dd4cb6de7 to your computer and use it in GitHub Desktop.
tmux settings
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
# behaviour | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set -g visual-activity on | |
set -g default-terminal "screen-256color" | |
setw -g monitor-activity on | |
# ctrl-a instead of ctrl-b | |
# set-option -g prefix C-a | |
# bindings | |
unbind-key % | |
unbind-key '"' | |
unbind-key v | |
unbind-key x | |
unbind-key h | |
unbind-key j | |
unbind-key k | |
unbind-key l | |
bind-key v splitw -h | |
bind-key x splitw -v | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# default statusbar colors | |
set -g status-bg colour235 #base02 | |
set -g status-fg colour136 #yellow | |
set -g status-attr default | |
# default window title colors | |
setw -g window-status-fg colour244 | |
setw -g window-status-bg default | |
#setw -g window-status-attr dim | |
# active window title colors | |
setw -g window-status-current-fg colour166 #orange | |
setw -g window-status-current-bg default | |
# pane border | |
set -g pane-border-fg colour235 #base02 | |
set -g pane-active-border-fg colour240 #base01 | |
# message text | |
set -g message-bg colour235 #base02 | |
set -g message-fg colour166 #orange | |
# pane number display | |
set -g display-panes-active-colour colour33 #blue | |
set -g display-panes-colour colour166 #orange | |
# clock | |
setw -g clock-mode-colour colour64 #green | |
# mouse in copy mode | |
set -g mouse on | |
# smart pane switching with awareness of vim splits | |
# bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" | |
# bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" | |
# bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U" | |
# bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" | |
# bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment