.tmux.conf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. set -g default-terminal "xterm-256color"
  2. #set -ga terminal-overrides ",*256col*:Tc"
  3. set -ga terminal-overrides ",xterm-256color:Tc"
  4. # action key
  5. unbind C-b
  6. set-option -g prefix C-t
  7. set-option -g repeat-time 0
  8. #### Key bindings
  9. set-window-option -g mode-keys vi
  10. #bind t send-key C-t
  11. # Reload settings
  12. bind r source-file ~/.tmux.conf \; display "Reloaded!"
  13. # Open current directory
  14. bind o run-shell "open #{pane_current_path}"
  15. bind -r e kill-pane -a
  16. # vim-like pane switching
  17. bind -r k select-pane -U
  18. bind -r j select-pane -D
  19. bind -r h select-pane -L
  20. bind -r l select-pane -R
  21. # Moving window
  22. bind-key -n C-S-Left swap-window -t -1 \; previous-window
  23. bind-key -n C-S-Right swap-window -t +1 \; next-window
  24. # Resizing pane
  25. bind -r C-k resize-pane -U 5
  26. bind -r C-j resize-pane -D 5
  27. bind -r C-h resize-pane -L 5
  28. bind -r C-l resize-pane -R 5
  29. #### basic settings
  30. set-option -g status-justify "left"
  31. #set-option utf8-default on
  32. #set-option -g mouse-select-pane
  33. set-window-option -g mode-keys vi
  34. #set-window-option -g utf8 on
  35. # look'n feel
  36. set-option -g status-fg cyan
  37. set-option -g status-bg black
  38. set -g pane-active-border-style fg=colour166,bg=default
  39. set -g window-style fg=colour10,bg=default
  40. set -g window-active-style fg=colour12,bg=default
  41. set-option -g history-limit 64096
  42. set -sg escape-time 10
  43. #### COLOUR
  44. # default statusbar colors
  45. set-option -g status-style bg=colour235,fg=colour136,default
  46. # default window title colors
  47. set-window-option -g window-status-style fg=colour244,bg=colour234,dim
  48. # active window title colors
  49. set-window-option -g window-status-current-style fg=colour166,bg=default,bright
  50. # pane border
  51. set-option -g pane-border-style fg=colour235 #base02
  52. set-option -g pane-active-border-style fg=colour136,bg=colour235
  53. # message text
  54. set-option -g message-style bg=colour235,fg=colour166
  55. # pane number display
  56. set-option -g display-panes-active-colour colour33 #blue
  57. set-option -g display-panes-colour colour166 #orange
  58. # clock
  59. set-window-option -g clock-mode-colour colour64 #green
  60. # allow the title bar to adapt to whatever host you connect to
  61. set -g set-titles on
  62. set -g set-titles-string "#T"
  63. # import
  64. if-shell "uname -s | grep -q Darwin" "source ~/.tmux.conf.osx"
  65. # Powerline
  66. source ~/.tmux.powerline.conf