sroller

tmux.conf

Oct 2nd, 2018 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.23 KB | None | 0 0
  1. # C-b is not acceptable -- Vim uses it
  2. set-option -g prefix C-a
  3. bind-key C-a last-window
  4.  
  5. # start numbering at 1
  6. set -g base-index 1
  7.  
  8. # Allows for faster key repetition
  9. set -s escape-time 0
  10.  
  11. # set status bar
  12. set -g status-style fg=white,bg=black
  13. set -g status-left ""
  14. set -g status-right "#[fg=green]#H "
  15.  
  16. setw -g aggressive-resize on
  17.  
  18. bind-key a send-prefix
  19.  
  20. # Activity monitoring
  21. setw -g monitor-activity on
  22. set -g visual-activity on
  23.  
  24. # Example of using a shell command in the status line
  25. # set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)"
  26.  
  27. # Highlight active window
  28. # set-window-option -g window-status-current-bg red # version < 3.x
  29. set-window-option -g window-status-current-style fg=white,bg=red
  30.  
  31. # simple splits
  32. bind | split-window -h
  33. bind - split-window -v
  34.  
  35. # shift arrow to switch windows
  36. bind-key -n S-Left previous-window
  37. bind-key -n S-Right next-window
  38.  
  39. # Alt-arrow to switch panes
  40. bind -n M-Left select-pane -L
  41. bind -n M-Right select-pane -R
  42. bind -n M-Up select-pane -U
  43. bind -n M-Down select-pane -D
  44.  
  45. # Alt-hjkl to resize pane
  46. bind -n M-k resize-pane -U
  47. bind -n M-j resize-pane -D
  48. bind -n M-h resize-pane -L
  49. bind -n M-l resize-pane -R
  50.  
  51.  
  52. set -g default-terminal "screen-256color"
  53.  
  54.  
Add Comment
Please, Sign In to add comment