Skip to content

Instantly share code, notes, and snippets.

@dontlaugh
Created October 1, 2018 00:19
Show Gist options
  • Save dontlaugh/3b50c54ab711fac1fc354b6b0fb072d2 to your computer and use it in GitHub Desktop.
Save dontlaugh/3b50c54ab711fac1fc354b6b0fb072d2 to your computer and use it in GitHub Desktop.
tmux conf
# Tested on MacOS save to $HOME/.tmux.conf and restart tmux
# Binds, Options
unbind C-b
set-option -g prefix f9
bind f9 send-prefix
setw -g xterm-keys on
set-option -sg escape-time 10
set -g mouse on
setw -g mode-keys vi
# Set shell
set-option -g default-shell /bin/zsh
# improve colors
set -g default-terminal "screen-256color"
# soften status bar color from harsh green to light gray
#set -g status-bg '#085DAD'
#set -g status-fg '#FFFFFF'
# remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right ''
# Copy-paste integration
set-option -g default-command "reattach-to-user-namespace -l zsh"
bind-key -T edit-mode-vi Up send-keys -X history-up
bind-key -T edit-mode-vi Down send-keys -X history-down
unbind-key -T copy-mode-vi Space ; bind-key -T copy-mode-vi v send-keys -X begin-selection
unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
unbind-key -T copy-mode-vi C-v ; bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
unbind-key -T copy-mode-vi [ ; bind-key -T copy-mode-vi [ send-keys -X begin-selection
unbind-key -T copy-mode-vi ] ; bind-key -T copy-mode-vi ] send-keys -X copy-selection
#set -g default-terminal "screen-256color"
set -g status-bg colour240
set -g pane-border-fg colour241
set -g pane-active-border-fg colour248
set -g pane-active-border-bg default
set -g window-status-current-bg colour248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment