Skip to content

Commit

Permalink
more tmux options
Browse files Browse the repository at this point in the history
  • Loading branch information
John W. Long committed Dec 23, 2014
1 parent 2f901e5 commit 3e700f0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ set -g default-terminal "screen-256color-bce"
set-option -g base-index 1
setw -g pane-base-index 1

# xterm keys
setw -g xterm-keys on

# aggressive resize
set -g aggressive-resize on


#--------------
# Mouse
Expand All @@ -23,9 +27,12 @@ set -g mouse-select-window on


#--------------
# Key mappings
# Key bindings
#--------------

# Vim status keys
set -g status-keys vi

# 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"
Expand Down Expand Up @@ -63,11 +70,12 @@ set -g status-fg white
set -g status-left ''
set -g status-right "%l:%M%p"
set -g status-justify centre
set -g status-attr bright

set-window-option -g window-status-current-bg white
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-attr bold
set -g window-status-separator " "
set -g window-status-format " #I #W "

set -g window-status-current-style bg=white,fg=black
set -g window-status-current-format " #I #W "

set -g pane-border-style fg=white
set -g pane-active-border-style fg=white

0 comments on commit 3e700f0

Please sign in to comment.