tmux.conf 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # tmux.conf@oblivion
  2. set -g default-terminal "screen-256color" # colors!
  3. setw -g xterm-keys on
  4. set -s escape-time 1 # faster command sequences
  5. set -sg repeat-time 300 # increase repeat timeout
  6. set -s focus-events on
  7. set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
  8. setw -q -g utf8 on
  9. set -g history-limit 5000 # boost history
  10. # reload configuration
  11. bind r source-file ~/.tmux.conf \; display 'config reloaded'
  12. # display
  13. setw -g automatic-rename on # rename window to reflect current program
  14. set -g renumber-windows on # renumber windows when a window is closed
  15. set -g set-titles on # set terminal title
  16. set -g set-titles-string 'tmux #S.#I.#P #W '
  17. set -g display-panes-time 800 # slightly longer pane indicators display time
  18. set -g display-time 1000 # slightly longer status messages display time
  19. # set -g status-interval 10 # redraw status line every 10 seconds
  20. # activity
  21. set -g monitor-activity on
  22. set -g visual-activity off
  23. # create session
  24. bind C-c new-session
  25. # find session
  26. bind C-f command-prompt -p find-session "switch-client -t %%"
  27. # change session directory to the directory of the current pane
  28. # bind d attach-session -t . -c '#{pane_current_path}' \; display 'Changed session directory'
  29. # split current window horizontally
  30. bind s split-window -v
  31. # split current window vertically
  32. bind v split-window -h
  33. bind b set-option -g status
  34. # pane navigation
  35. bind -r h select-pane -L # move left
  36. bind -r j select-pane -D # move down
  37. bind -r k select-pane -U # move up
  38. bind -r l select-pane -R # move right
  39. bind < swap-pane -D # swap current pane with the next one
  40. bind > swap-pane -U # swap current pane with the previous one
  41. bind Space next-layout # toggle layout
  42. # pane resizing
  43. bind -r H resize-pane -L 5
  44. bind -r J resize-pane -D 5
  45. bind -r K resize-pane -U 5
  46. bind -r L resize-pane -R 5
  47. bind Tab last-window # move to last active window
  48. # mouse
  49. setw -g mouse on
  50. # setup 'v' to begin selection as in Vim
  51. set-window-option -g mode-keys vi
  52. bind Enter copy-mode
  53. bind-key -T copy-mode-vi 'v' send -X begin-selection
  54. bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
  55. # colors
  56. set -g pane-border-style fg="#444444"
  57. set -g pane-active-border-style fg="#ffffff"
  58. # set -g status-style bg="#111111"
  59. # set -g status-style fg="#555555"
  60. # set -g window-status-current-style bg="#111111"
  61. # set -g window-status-current-style fg="#ffffff"
  62. set -g status on
  63. set -g status-left ''
  64. set -g status-right ''
  65. set-option -g status-position bottom