Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Last active May 22, 2019 23:06
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 heapwolf/69cf4f9d0ea0a9b217c157af117507aa to your computer and use it in GitHub Desktop.
Save heapwolf/69cf4f9d0ea0a9b217c157af117507aa to your computer and use it in GitHub Desktop.
set -g prefix C-a
unbind-key C-b
#
# New splits should start with the same cwd
#
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
#
# Re-source
#
bind R source-file ~/.tmux.conf \; display-message " -> Reloaded"
#
# Right and left
#
bind -n S-Right next-window
bind -n S-Left previous-window
# bind -n S-Down new-window -c "$DIR"
#
# Canadian Colours
#
set -g default-terminal "screen-256color"
set-window-option -g mode-fg colour15
set-window-option -g mode-bg colour39
#
# Start numbering windows at 1
#
set -g base-index 1
set -g history-limit 20000
#
# Mouse
#
set -g mouse on
#
# Set window notifications
#
setw -g monitor-activity off
set -g visual-activity off
#
# Window and border styles
#
set -g window-style 'fg=colour238,bg=colour252'
set -g window-active-style 'fg=colour238,bg=colour252'
set -g pane-border-fg colour252
set -g pane-border-bg colour252
set -g pane-active-border-fg colour252
set -g pane-active-border-bg colour252
set -g pane-border-status bottom
set -g pane-border-format " #{pane_current_command} "
#
# Statusbar
#
set -g status-fg colour238
set -g status-bg colour0
#set -g window-status-activity-style 'bg=colour01,blink'
set -g window-status-bell-style 'fg=colour1'
set -g message-bg colour0
set -g message-fg colour252
set -g status-position bottom
set -g status-left '#[fg=colour0,bg=colour0]'
set -g window-status-format " #[fg=colour39]#(cd #{pane_current_path}; [[ -z $(git status --porcelain) ]] || echo " ·")#[fg=colour240] #W "
set -g window-status-current-format "#[fg=colour0,bg=colour252] \
#[fg=colour0]#(cd #{pane_current_path}; [[ -z $(git status --porcelain) ]] || echo " ·")#[fg=colour0] #W #[fg=colour0,bg=colour252] "
set -g status-right '#[fg=colour15,bg=colour0,noreverse] \
#[fg=colour39] #(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD || echo "#[fg=colour242]#{pane_current_command}") \
#[fg=colour242] #(bash net-icon.sh) #[fg=colour240]%R (%Z)  #(date -u +"%%R UTC ")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment