Skip to content

Instantly share code, notes, and snippets.

@dmilith
Last active January 2, 2020 12:00
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 dmilith/2dc4a4b24db6b15b4947fd3d7dec9b89 to your computer and use it in GitHub Desktop.
Save dmilith/2dc4a4b24db6b15b4947fd3d7dec9b89 to your computer and use it in GitHub Desktop.
My tmux setup for workstation (tmux is used as shell replacement here)
# color scheme (style based on vim-powerline)
setw -g status-left-length 52
setw -g status-right-length 451
setw -g status-fg colour35
setw -g status-bg colour234
setw -g window-status-format '#[fg=colour69,bg=colour234] #I #W '
setw -g window-status-current-format '#[fg=colour234,bg=colour39]#[fg=colour65,bg=colour235,noreverse,bold] #I #W #[fg=colour69,bg=colour235,nobold]'
set -g default-terminal "tmux-256color"
# Prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Vim selection:
unbind [
unbind x
#bind Escape copy-mode
bind x copy-mode
#unbind p
#bind p paste-buffer
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe "~/.zsh/copies"
setw -g mode-keys vi
set -g default-terminal "screen-256color"
set -g focus-events on
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# Quiet
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# selection color
setw -g mode-style fg=colour120,bg=colour60
# Panes
set -g pane-border-style fg=black,bright
set -g pane-active-border-style fg=blue
set -g base-index 1
# Statusbar
set -g status-left ''
set -g status-right "#h, #S"
set -g status-right-length 20
set -g window-status-separator ''
set-option -g history-limit 350000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment