Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. # Desativa o CTRL+B e ativa o CTRL+A como leader key
  2. unbind C-b
  3. set -g prefix C-a
  4.  
  5. # Indece das janelas sempre começando em 0
  6. set -g base-index 0
  7.  
  8. # Reclassifica o indece sempre que uma janela é destruida
  9. set -g renumber-windows on
  10.  
  11. # Tamanho do buffer
  12. set -g history-limit 9000
  13.  
  14. # Navegando entre panels uusando Alt+HJKL
  15. bind -n M-l select-pane -L
  16. bind -n M-h select-pane -R
  17. bind -n M-k select-pane -U
  18. bind -n M-j select-pane -D
  19.  
  20. # Mode-keys
  21. setw -g mode-keys vi
  22. # Unbinding previous bind
  23. unbind-key -T copy-mode-vi v
  24. # Begin selection in copy mode
  25. bind-key -T copy-mode-vi v send -X begin-selection
  26. bind-key -T copy-mode-vi y send -X copy-selection
  27. bind-key -T copy-mode-vi r send -X rectangle-toggle
  28. # Copy from tmux to system buffer
  29. bind -T copy-mode-vi y send -X copy-pipe "xclip -sel clip -i"
  30.  
  31. # Switching between windows using Shift+arrow
  32. bind -n S-Left previous-window
  33. bind -n S-Right next-window
  34.  
  35. # Reload tmux settings (~/.tmux.config file) using <prefix>-r
  36. bind r \
  37. source-file ~/.tmux.conf\;\
  38. display "TMUX conf reloaded!"
  39.  
  40. # Toggle synchronized panes at the current window using <prefix>-P
  41. bind P \
  42. setw synchronize-panes\;\
  43. display "Synced Panes are #{?pane_synchronized,on,off}, Captain!"
  44.  
  45. # Kill pane without confirmation
  46. bind-key x kill-pane
  47.  
  48. # Enable mouse mode
  49. set -g mouse on
  50.  
  51. # C-z zoom current pane
  52. unbind C-z
  53. bind -n C-z resize-pane -Z
  54.  
  55. # Use v to trigger selection
  56. bind-key -T copy-mode-vi v send-keys -X begin-selection
  57.  
  58. # Create splits and vertical splits
  59. bind-key v split-window -h -p 50 -c "#{pane_current_path}"
  60. bind-key ^V split-window -h -p 50 -c "#{pane_current_path}"
  61. bind-key h split-window -p 50 -c "#{pane_current_path}"
  62. bind-key ^H split-window -p 50 -c "#{pane_current_path}"
  63.  
  64. #___________________________________________________________________
  65.  
  66. # Theme: Status Bar
  67. set -g status-justify left
  68. set -g status-bg colour235
  69. set -g status-fg colour6
  70. set -g status-interval 2
  71. set -g status-left-length 50
  72. set -g status-left '#[bg=colour196]#[fg=colour235] TMUX #[bg=colour235]#[fg=colour99] ( W #[fg=white]#I#[fg=colour99] P #[fg=white]#P #[fg=colour99]) '
  73. set -g status-right '#[fg=colour231]#(whoami) #[fg=colour155]@ #[fg=colour51](#S) '
  74. # Theme: Clock
  75. setw -g clock-mode-colour colour155
  76.  
  77. source "/usr/share/powerline/bindings/tmux/powerline.conf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement