Dotfiles for different machines on different branches.
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.

56 lines
2.1 KiB

  1. set -g prefix C-a
  2. setw -g mode-keys vi
  3. setw -g mode-style bg=black
  4. set-option -g default-terminal "xterm-256color"
  5. set-option -g pane-active-border-style fg=green
  6. set-window-option -g xterm-keys on # for vim
  7. set-window-option -g mode-keys vi # vi key
  8. set-window-option -g monitor-activity on
  9. set-window-option -g window-status-current-style fg=white
  10. setw -g window-status-current-style reverse
  11. setw -g automatic-rename
  12. set -g mouse on
  13. set -g history-limit 30000
  14. set -g terminal-overrides 'xterm*:smcup@:rmcup@'
  15. set-option -g status-justify right
  16. set-option -g status-bg black # colour213 # pink
  17. set-option -g status-fg cyan
  18. set-option -g status-interval 5
  19. set-option -g status-left-length 30
  20. set-option -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]'
  21. set-option -g status-right '#[fg=red,bold][[ #(git branch) branch ]] #[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
  22. set-option -g visual-activity on
  23. set-option -g set-titles on
  24. set-option -g set-titles-string '#H:#S.#I.#P #W #T'
  25. unbind j
  26. unbind C-b # unbind default leader key
  27. unbind '"' # unbind horizontal split
  28. unbind % # unbind vertical split
  29. bind-key r source-file ~/.tmux.conf
  30. bind-key c split-window -v # split pane horizontally
  31. bind-key v split-window -h # split pane vertically
  32. bind-key Space list-panes
  33. bind-key Enter break-pane
  34. bind-key Space command-prompt "joinp -t:%%" # %% = prompt for window.pane [-V|H] # vert|hor split
  35. bind-key -n C-up prev
  36. bind-key -n C-left prev
  37. bind-key -n C-right next
  38. bind-key -n C-down next
  39. set-window-option -g window-status-current-style bg=red
  40. bind C-j previous-window
  41. bind C-k next-window
  42. #bind-key C-a last-window # C-a C-a for last active window
  43. bind A command-prompt "rename-window %%"
  44. setw -g aggressive-resize on
  45. bind-key h select-pane -L
  46. bind-key j select-pane -D
  47. bind-key k select-pane -U
  48. bind-key l select-pane -R
  49. bind-key -r C-h resize-pane -L
  50. bind-key -r C-j resize-pane -D
  51. bind-key -r C-k resize-pane -U
  52. bind-key -r C-l resize-pane -R
  53. bind o select-layout "active-only"
  54. bind M-- select-layout "even-vertical"
  55. bind M-| select-layout "even-horizontal"
  56. bind M-r rotate-window