Skip to content

Instantly share code, notes, and snippets.

@dguaraglia
Created November 9, 2016 00:04
Show Gist options
  • Save dguaraglia/f15f39f339545041845612a5bb1fbc01 to your computer and use it in GitHub Desktop.
Save dguaraglia/f15f39f339545041845612a5bb1fbc01 to your computer and use it in GitHub Desktop.
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
set -g default-terminal "screen-256color"
# Other theme
set -g status-left-length 32
set -g status-right-length 150
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
# Mouse behavior
# setw -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
setw -g mouse on
#
# Extend history
set-option -g history-limit 10000
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Enable native Mac OS X copy/paste
# set-option -g default-command "reattach-to-user-namespace -l env $SHELL"
set-option -g default-command "reattach-to-user-namespace -l zsh"
# set-titles on
# Allow the arrow key to be used immediately after changing windows
set-option -g repeat-time 0
# Removed user from the status line
# set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]'
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]#[fg=colour25,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]"
set-window-option -g mode-keys vi
bind-key R send-keys -R \; clear-history
# Bind Enter and y to pbcopy
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind-key -t vi-copy y copy-pipe "pbcopy"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "pbcopy"
# Bind ']' to use pbpaste
bind ] run "pbpaste | tmux load-buffer - && tmux paste-buffer"
# Don't let ZSH change the title of the terminal every time it runs a command
set-option -g allow-rename off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment