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.

46 lines
1.6KB

  1. setw -g xterm-keys on
  2. set -g default-terminal "screen-256color"
  3. unbind C-b
  4. set -g prefix ` # use tilde key as prefix
  5. unbind C-Left
  6. unbind C-Right
  7. unbind S-Left
  8. unbind S-Right
  9. bind ` send-key ` # insert tilde by pressing twice
  10. bind , previous-window
  11. bind . next-window
  12. bind < swap-window -t :-
  13. bind > swap-window -t :+
  14. bind | split-window -h # split into left and right panes
  15. bind \ split-window -h
  16. bind - split-window -v # split into top and bottom panes
  17. bind o rotate-window # rotate panes around in current window
  18. bind Left resize-pane -L 5
  19. bind Right resize-pane -R 5
  20. bind Up resize-pane -U 5
  21. bind Down resize-pane -D 5
  22. bind v select-layout even-horizontal
  23. bind V select-layout main-vertical
  24. bind h select-layout even-vertical
  25. bind H select-layout main-horizontal
  26. bind t select-layout tiled
  27. bind n command-prompt 'rename-window %%'
  28. bind N command-prompt 'rename-session %%'
  29. bind x kill-pane
  30. bind X kill-window
  31. bind r source-file ~/.tmux.conf \; display-message " * reloaded ~/.tmux.conf"
  32. bind w run "~/bin/tmux-copy"
  33. bind y run "~/bin/tmux-paste"
  34. # behavior
  35. set -g base-index 1 # start window numbering from 1 instead of 0
  36. setw -g automatic-rename on # automatically name windows
  37. set -g set-titles on # auto set the terminal's window title
  38. setw -g window-status-format ' #I #W ' # window name formatting
  39. setw -g window-status-current-format ' #I #W '
  40. set -g status-bg colour35
  41. setw -g window-status-current-style 'fg=white, bg=blue'