Skip to content

Instantly share code, notes, and snippets.

@hosh
Created October 25, 2016 19:20
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 hosh/3afe98a1b0f4d95aa463c7c0bece532c to your computer and use it in GitHub Desktop.
Save hosh/3afe98a1b0f4d95aa463c7c0bece532c to your computer and use it in GitHub Desktop.
tmux.conf
# Disable delay in escape so that spacemacs will work under here
set -s escape-time 0
# utf-8 support
setw -g utf8 on
set -g status-utf8 on
set -g default-terminal "screen-256color"
set -g prefix C-z
unbind-key C-b
# Vim mode
setw -g mode-keys vi
set-option -g status-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'V' begin-selection
bind-key -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy"
#unbind -t vi-copy Enter
#bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
bind y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy'
#bind C-y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy'
# Clipboard
set -g mouse-select-pane off
set -g mouse-utf8 off
set -g mode-mouse off
set -g mouse-resize-pane off
# Panes
bind-key c new-window -c "#{pane_current_path}"
bind-key | split-window -h -c '#{pane_current_path}'
bind-key _ split-window -v -c '#{pane_current_path}'
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind L resize-pane -R 20
bind H resize-pane -L 20
bind K resize-pane -U 5
bind J resize-pane -D 5
bind w select-pane -t :.+
bind W choose-window
bind > next-window
bind < last-window
bind \; last-window
unbind o
# # Reload key
bind r source-file ~/.tmux.conf
set -g history-limit 10000
# THEME
set -g status-bg colour017
set -g status-fg colour012
#set -g status-bg blue
#set -g status-fg white
set -g status-interval 30
set -g status-left-length 30
set -g status-left '#[fg=green](#S) #H#[default] '
set -g status-right '#[fg=green]#(date -u +%%H:%%M) UTC#[default]'
set -g window-status-current-bg colour058
set -g window-status-current-fg colour192
#set -g window-status-current-bg yellow
#set -g window-status-current-fg black
set-option -g pane-border-fg colour236
set-option -g pane-active-border-fg colour242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment