Skip to content

Instantly share code, notes, and snippets.

@liyaoxinchifan
Last active November 6, 2018 07:48
Show Gist options
  • Save liyaoxinchifan/461c671c89f64ed26b72ecf71a2de5ea to your computer and use it in GitHub Desktop.
Save liyaoxinchifan/461c671c89f64ed26b72ecf71a2de5ea to your computer and use it in GitHub Desktop.
mac-tmux-conf
#set -g status off
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-capture-pane-contents 'on'
#set -g @plugin 'tmux-plugins/tmux-sensible'
setw -g mode-keys vi
set -g default-terminal "screen-256color"
set -sg escape-time 1
set -g status-justify left
setw -g monitor-activity on
set -g status-bg black
set -g status-fg yellow
set -g status-style "bg=black, fg=yellow"
set-option -g default-command "reattach-to-user-namespace -l /bin/zsh"
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe "reattach-to-user-namespace pbcopy"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r ^k resizep -U 10
bind -r ^j resizep -D 10
bind -r ^h resizep -L 10
bind -r ^l resizep -R 10
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment