My dotfiles for my Linux rice managed with stow and make
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.tmux.conf 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # zsh time for now :)
  2. set-option -g default-shell /bin/zsh
  3. # make tmux display things in 256 colors
  4. set -g default-terminal "tmux-256color"
  5. # set scrollback history to 10000 (10k)
  6. set -g history-limit 10000
  7. # set Ctrl-a as the default prefix key combination
  8. # and unbind C-b to free it up
  9. set -g prefix C-a
  10. unbind C-b
  11. # use send-prefix to pass C-a through to application
  12. bind C-a send-prefix
  13. # shorten command delay
  14. set -sg escape-time 1
  15. # set window and pane index to 1 (0 by default)
  16. set-option -g base-index 1
  17. setw -g pane-base-index 1
  18. # allow mouse scrolling
  19. bind m set -g mouse\; display "Mouse Toggled"
  20. set -g mouse on
  21. bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
  22. # reload ~/.tmux.conf using PREFIX r
  23. bind r source-file ~/.tmux.conf \; display "Reloaded!"
  24. # use PREFIX | to split window horizontally and PREFIX - to split vertically
  25. bind | split-window -h -c "#{pane_current_path}"
  26. bind - split-window -v -c "#{pane_current_path}"
  27. # Make the current window the first window
  28. bind T swap-window -t 1
  29. # map Vi movement keys as pane movement keys
  30. bind h select-pane -L
  31. bind j select-pane -D
  32. bind k select-pane -U
  33. bind l select-pane -R
  34. # and use C-h and C-l to cycle thru panes
  35. bind -r C-h select-window -t :-
  36. bind -r C-l select-window -t :+
  37. # resize panes using PREFIX H, J, K, L
  38. bind H resize-pane -L 5
  39. bind J resize-pane -D 5
  40. bind K resize-pane -U 5
  41. bind L resize-pane -R 5
  42. # window creation and deletion
  43. bind N new-window
  44. bind D kill-window
  45. # kill session completely
  46. bind q kill-session
  47. # ---------------------
  48. # Copy & Paste
  49. # ---------------------
  50. # provide access to the clipboard for pbpaste, pbcopy
  51. set-window-option -g automatic-rename on
  52. # use vim keybindings in copy mode
  53. setw -g mode-keys vi
  54. # setup 'v' to begin selection as in Vim
  55. #bind-key -t vi-copy v begin-selection
  56. # update default binding of 'Enter' to also use copy-pipe
  57. #unbind -t vi-copy Enter
  58. # ----------------------
  59. # Status Bar
  60. # -----------------------
  61. set -g status-justify "left"
  62. set -g status "on"
  63. set -g status-attr "none"
  64. set -g message-command-bg "colour0"
  65. set -g status-left-length "100"
  66. set -g pane-active-border-fg "colour1"
  67. set -g status-bg "colour0"
  68. set -g message-command-fg "colour4"
  69. set -g pane-border-fg "colour7"
  70. set -g message-bg "colour0"
  71. set -g status-left-attr "none"
  72. set -g status-right-attr "none"
  73. set -g status-right-length "100"
  74. set -g message-fg "colour5"
  75. setw -g window-status-fg "colour0"
  76. setw -g window-status-attr "none"
  77. setw -g window-status-activity-bg "colour5"
  78. setw -g window-status-activity-attr "none"
  79. setw -g window-status-activity-fg "colour0"
  80. setw -g window-status-separator ""
  81. setw -g window-status-bg "colour5"
  82. set -g status-left "#[fg=colour5,bg=colour0] #S #[fg=colour0,bg=colour5,nobold,nounderscore,noitalics]"
  83. set -g status-right "#[fg=colour0,bg=colour5,nobold,nounderscore,noitalics]#[fg=colour5,bg=colour0] %R "
  84. setw -g window-status-format "#[fg=colour5,bg=colour5,nobold,nounderscore,noitalics]#[default] #I #W #[fg=colour5,bg=colour5,nobold,nounderscore,noitalics]"
  85. setw -g window-status-current-format "#[fg=colour5,bg=colour0,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour1] #I #W #[fg=colour1,bg=colour5,nobold,nounderscore,noitalics]"