Created
December 8, 2016 07:42
-
-
Save an9er/5e6467d6db813a5066c1ff96c516eaf3 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
# Smart pane switching with awareness of vim splits | |
# See: https://github.com/christoomey/vim-tmux-navigator | |
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?x?)(diff)?$"' | |
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" | |
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" | |
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" | |
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" | |
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" | |
unbind C-b | |
set -g prefix C-z | |
# Status bar | |
# colors | |
set -g status-bg black | |
set -g status-fg white | |
# alignment | |
set-option -g status-justify centre | |
# spot at left | |
set-option -g status-left '#[bg=black,fg=green][#[fg=cyan]#S#[fg=green]]' | |
set-option -g status-left-length 20 | |
# window list | |
setw -g automatic-rename on | |
set-window-option -g window-status-format '#[dim]#I:#[default]#W#[fg=grey,dim]' | |
set-window-option -g window-status-current-format '#[fg=cyan,bold]#I#[fg=blue]:#[fg=cyan]#W#[fg=dim]' | |
# spot at right | |
set -g status-right '#[fg=green][#[fg=cyan]%Y-%m-%d#[fg=green]]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment