Advertisement
Guest User

tmux conf

a guest
Mar 5th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.26 KB | None | 0 0
  1. # 0 is too far from ` ;)
  2. set -g base-index 1
  3.  
  4. # Automatically set window title
  5. set-window-option -g automatic-rename on
  6. set-option -g set-titles on
  7.  
  8. #set -g default-terminal screen-256color
  9. set -g status-keys vi
  10. set -g history-limit 10000
  11.  
  12. setw -g mode-keys vi
  13. setw -g mode-mouse on
  14. setw -g monitor-activity on
  15.  
  16. bind-key v split-window -h
  17. bind-key s split-window -v
  18.  
  19. bind-key J resize-pane -D 5
  20. bind-key K resize-pane -U 5
  21. bind-key H resize-pane -L 5
  22. bind-key L resize-pane -R 5
  23.  
  24. bind-key M-j resize-pane -D
  25. bind-key M-k resize-pane -U
  26. bind-key M-h resize-pane -L
  27. bind-key M-l resize-pane -R
  28.  
  29. # Vim style pane selection
  30. bind h select-pane -L
  31. bind j select-pane -D
  32. bind k select-pane -U
  33. bind l select-pane -R
  34.  
  35. # Use Alt-vim keys without prefix key to switch panes
  36. bind -n M-h select-pane -L
  37. bind -n M-j select-pane -D
  38. bind -n M-k select-pane -U
  39. bind -n M-l select-pane -R
  40.  
  41. # Use Alt-arrow keys without prefix key to switch panes
  42. bind -n M-Left select-pane -L
  43. bind -n M-Right select-pane -R
  44. bind -n M-Up select-pane -U
  45. bind -n M-Down select-pane -D
  46.  
  47. # Shift arrow to switch windows
  48. bind -n S-Left  previous-window
  49. bind -n S-Right next-window
  50.  
  51. # No delay for escape key press
  52. set -sg escape-time 0
  53.  
  54. # Reload tmux config
  55. bind r source-file ~/.tmux.conf
  56.  
  57. # THEME
  58. set -g status-bg black
  59. set -g status-fg white
  60. set -g window-status-current-bg white
  61. set -g window-status-current-fg black
  62. set -g window-status-current-attr bold
  63. set -g status-interval 60
  64. set -g status-left-length 30
  65. #set -g status-left '#[fg=green](#S) #(whoami)'
  66. #set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
  67. # show host name and IP address on left side of status bar
  68. set -g status-left-length 70
  69. set -g status-left "#[fg=green]: #h : #[fg=brightblue]#(curl icanhazip.com) #[fg=yellow]#(ifconfig eth0 | grep 'inet ' | awk '{print \"eth0 \" $2}') #(ifconfig eth1 | grep 'inet ' | awk '{print \"eth1 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') "
  70.  
  71. # show session name, window & pane number, date and time on right side of
  72. # status bar
  73. set -g status-right-length 60
  74. set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement