Advertisement
Jacknoll

tmux.conf

Jun 6th, 2019
1,570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Use ` as the prefix character
  2. unbind C-b
  3. set -g prefix `
  4. bind ` send-prefix
  5.  
  6. # Use `-R to reload source file config
  7. bind R source-file ~/.tmux.conf
  8.  
  9. # Use `-X to kill window
  10. bind X confirm kill-window
  11.  
  12. # Set Xterm key bindings
  13. setw -g xterm-keys on
  14.  
  15. # Set mouse mode off
  16. set -g mouse off
  17.  
  18. # Set window numbering from 1
  19. set -g base-index 1
  20.  
  21. # Set vim key bindings in copy paste mode
  22. set -g mode-keys vi
  23.  
  24. # Set no delay to prefix key press
  25. set -sg escape-time 0
  26.  
  27. # Set titles
  28. set -g set-titles on
  29. set -g set-titles-string "tmux #(whoami)@#(hostname) (#I:#W)"
  30.  
  31. set-option -g renumber-windows on
  32.  
  33. # Set status bar
  34. set-option -g status-position bottom
  35. set -g status-bg black
  36. set -g status-fg white
  37. set -g status-interval 5
  38. set -g status-left-length 120
  39. set -g status-right-length 90
  40. set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=cyan]#(hostname)#[bg=default]#[fg=white]::#[fg=red]#S#[fg=white] "
  41. set -g status-justify left
  42. set -g status-right '#[fg=cyan]:: %a %b %d %H:%M'
  43.  
  44. setw -g automatic-rename on
  45.  
  46. # Set keyboard bindings for window reorder
  47. bind -n C-H swap-window -t -1
  48. bind -n C-L swap-window -t +1
  49.  
  50. # Set keyboard bindings for pane resize
  51. bind -n M-Left  resize-pane -L
  52. bind -n M-Right resize-pane -R
  53. bind -n M-Up    resize-pane -U
  54. bind -n M-Down  resize-pane -D
  55.  
  56. # Set larger scrollback buffer
  57. set -g history-limit 100000
  58.  
  59. # Shortcut to clear scrollback buffer
  60. bind -n C-k clear-history
  61.  
  62. # Synchronize input to panes with C-e
  63. bind e setw synchronize-panes on
  64. bind E setw synchronize-panes off
  65.  
  66. # Enable tmux-resurrect plugin
  67. run-shell ~/.tmux/plugins/tmux-resurrect-master/resurrect.tmux
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement