Skip to content

Instantly share code, notes, and snippets.

@springle
Last active July 31, 2018 17:52
Show Gist options
  • Save springle/72db350966abfc8feef753106e4b4b23 to your computer and use it in GitHub Desktop.
Save springle/72db350966abfc8feef753106e4b4b23 to your computer and use it in GitHub Desktop.
SamTmux
# VI-like navigation.
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
setw -g mode-keys vi
# Pane resizing.
bind -n M-j resize-pane -D 1
bind -n M-h resize-pane -L 1
bind -n M-k resize-pane -U 1
bind -n M-l resize-pane -R 1
bind -n M-p previous-window
bind -n M-n next-window
# allow quick reloading of tmux config
bind r source-file ~/.tmux.conf
# Status line.
set -g status-fg white
set -g status-bg black
set -g status-left ""
set -g status-right "#{?pane_synchronized, #[bg=blue]SYNCHRONIZED#[default],} #S "
# Window list.
setw -g window-status-fg colour246 # grey
setw -g window-status-bg black
setw -g window-status-attr none
setw -g window-status-format "#[fg=colour172]#I#[fg=white] #W "
# Active window.
setw -g window-status-current-fg white
setw -g window-status-current-bg black
setw -g window-status-current-attr bright
setw -g window-status-current-format "#[fg=colour172]#I#[fg=white] #W#F"
# Window activity.
setw -g window-status-activity-fg colour246 # grey
setw -g window-status-activity-bg black
# Panes.
set -g pane-border-fg white
set -g pane-border-bg black
set -g pane-border-status top
set -g pane-border-format "#{pane_index} #{pane_current_command}"
set -g pane-active-border-fg green
set -g pane-active-border-bg black
# Command/message line.
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# Make the window list appear at the left-hand side instead of at the center.
set -g status-justify left
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment