Skip to content

Instantly share code, notes, and snippets.

@swieder227
Last active June 14, 2018 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swieder227/e56236aa7a1991273dc9683586a9388a to your computer and use it in GitHub Desktop.
Save swieder227/e56236aa7a1991273dc9683586a9388a to your computer and use it in GitHub Desktop.
# ------------------------------------------------------------------
# Session options
# -------------------------------------------------------------------
# Change bind key to ctrl-a
unbind-key c-b
set-option -g prefix c-a
# Index starts from 1
set-option -g base-index 1
set-option -g pane-base-index 1
# -------------------------------------------------------------------
# Key bindings
# -------------------------------------------------------------------
# Make windows open in same working directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Scrolling
set -g mouse on
# -------------------------------------------------------------------
# Decoration (256-color)
# -------------------------------------------------------------------
set-option -g status-justify left
set-option -g status-left '#[bg=colour72]#[fg=colour237] #S '
set-option -g status-bg colour237
set-option -g status-right '#[bg=colour236]#[bg=colour235]#[fg=colour185] #(hostname) '
set-option -g status-left-length 20
set-option -g pane-active-border-fg colour245
set-option -g pane-border-fg colour243
set-window-option -g window-status-format '#[bg=colour238]#[fg=colour107] #I #[bg=colour239]#[fg=colour110] #[bg=colour240]#W#[bg=colour239]#[fg=colour195]#F#[bg=colour238] '
set-window-option -g window-status-current-format '#[bg=colour236]#[fg=colour215] #I #[bg=colour235]#[fg=colour167] #[bg=colour234]#W#[bg=colour235]#[fg=colour195]#F#[bg=colour236] '
# set-window-option -g window-style 'bg=colour238'
# set-window-option -g window-active-style 'bg=colour237'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment