db17d8bf |
# smart pane switching with awareness of vim splits
|
577da723 |
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq -e emacs -e vim && tmux send-keys C-h) || tmux select-pane -L"
|
55ed3cd8 |
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq -e emacs -e vim && tmux send-keys C-j) || tmux select-pane -D"
bind j select-pane -D
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq -e emacs -e vim && tmux send-keys C-k) || tmux select-pane -U"
bind j select-pane -U
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq -e emacs -e vim && tmux send-keys C-l) || tmux select-pane -R"
|
0d7200db |
bind -n C-\\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq -e emacs -e vim && tmux send-keys 'C-\\') || tmux select-pane -l"
|
db17d8bf |
|
70e8006a |
bind m set -g mouse on
bind m set -g mouse off
|
7304bd7d |
# Open new windows/panes in same directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
|
db17d8bf |
set -g status-left-length 52
set -g status-right-length 451
|
6728cae8 |
set -g status-fg colour234
set -g status-bg white
|
0d7200db |
set -g window-status-activity-style bold
set -g pane-border-style fg=colour245
set -g pane-active-border-style fg=colour39
set -g message-style fg=colour16,bg=colour221,bold
|
db17d8bf |
set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]'
|
907e4c93 |
set -g window-status-format "#[fg=white,bg=colour234]#I #W"
|
db17d8bf |
set -g window-status-current-format "#[fg=colour234,bg=colour39] #[fg=colour25,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]"
|