Guest User

Untitled

a guest
Jul 16th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 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 "xterm-256color"
  9. set -g status-keys vi
  10. set -g history-limit 10000
  11.  
  12. setw -g mode-keys vi
  13. setw -g mouse on
  14. setw -g monitor-activity on
  15.  
  16. set-window-option -g xterm-keys on
  17.  
  18. bind | split-window -h -c "#{pane_current_path}"
  19. bind - split-window -v -c "#{pane_current_path}"
  20.  
  21. is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
  22. | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
  23.  
  24.  
  25. # bind -n M-Left if-shell "$is_vim" "send-keys M-Left" "select-pane -L"
  26. # bind -n M-Down if-shell "$is_vim" "send-keys M-Down" "select-pane -D"
  27. # bind -n M-Up if-shell "$is_vim" "send-keys M-Up" "select-pane -U"
  28. # bind -n M-Right if-shell "$is_vim" "send-keys M-Right" "select-pane -R"
  29.  
  30. bind -n M-Left send-keys M-Left
  31. # bind -n M-Down if-shell "$is_vim" "send-keys M-Down" "select-pane -D"
  32. # bind -n M-Up if-shell "$is_vim" "send-keys M-Up" "select-pane -U"
  33. # bind -n M-Right if-shell "$is_vim" "send-keys M-Right" "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. # No delay for escape key press
  42. set -sg escape-time 0
  43.  
  44. # Reload tmux config
  45. bind r source-file ~/.tmux.conf
  46.  
  47. # THEME
  48. set -g status-bg black
  49. set -g status-fg white
  50. set -g window-status-current-bg white
  51. set -g window-status-current-fg black
  52. set -g window-status-current-attr bold
  53. set -g status-interval 60
  54. set -g status-left-length 30
  55. set -g status-left '#[fg=green](#S) #(whoami)'
  56. set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
Add Comment
Please, Sign In to add comment