.tmux.conf.macos 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. set -g default-terminal "xterm-256color"
  2. set -g display-panes-time 5000
  3. set -s set-clipboard off
  4. set -g history-limit 10000
  5. # Set vi key binding, and add the standard v and y
  6. setw -g mode-keys vi
  7. bind -T copy-mode-vi v send-keys -X begin-selection
  8. bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xargs echo -n | pbcopy'
  9. # Unbind enter to copy, use y like normal people
  10. unbind -T copy-mode-vi Enter
  11. bind '"' split-window -c "#{pane_current_path}"
  12. bind % split-window -h -c "#{pane_current_path}"
  13. bind C new-window -c "#{pane_current_path}"
  14. bind r source-file ~/.tmux.conf
  15. # Vim keys for navigation between panes
  16. bind h select-pane -L
  17. bind j select-pane -D
  18. bind k select-pane -U
  19. bind l select-pane -R
  20. # Styling
  21. set-option -g status-bg black
  22. set-option -g status-fg white
  23. set-option -g mode-style "bg=blue, fg=black"
  24. set-option -g message-style "bg=blue, fg=black"
  25. set-option -g message-command-style "bg=blue, fg=black"
  26. set-option -g pane-active-border-style "fg=colour8"
  27. set-option -g pane-border-style "fg=colour8"
  28. set-option -g pane-active-border-style "fg=white"
  29. set-option -g window-status-separator "#[fg=grey] | "
  30. # Left components
  31. set-option -g status-left-length 20
  32. set-option -g status-left "#[bg=black] "
  33. # Right components
  34. set-option -g status-right-length 50
  35. set-option -g status-right "#[fg=grey] %Y-%m-%d %H:%M "
  36. # Window list style
  37. set-window-option -g window-status-format "#[fg=grey]#I: #W"
  38. set-window-option -g window-status-current-format "#[fg=blue]#I: #W"
  39. set-window-option -g window-status-activity-style "bg=black, fg=colour8, italics"
  40. set-window-option -g window-status-bell-style "bg=black, fg=colour8, italics"