Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. # remap prefix from 'C-b' to 'C-a'
  2. unbind C-b
  3. set-option -g prefix C-a
  4. bind-key C-a send-prefix
  5.  
  6. # Don't rename windows automatically
  7. #set-option -g allow-rename off
  8.  
  9. # reload config file (change file location to your the tmux.conf you want to use)
  10. bind r source-file ~/.tmux.conf
  11.  
  12. # switch panes using Alt-arrow without prefix
  13. bind -n M-Left select-pane -L
  14. bind -n M-Right select-pane -R
  15. bind -n M-Up select-pane -U
  16. bind -n M-Down select-pane -D
  17.  
  18. # split panes using | and -
  19. bind | split-window -h
  20. bind - split-window -v
  21. unbind '"'
  22. unbind %
  23.  
  24. # Enable mouse mode (tmux 2.1 and above)
  25. set -g mouse on
  26.  
  27. set -g default-terminal "screen-256color"
  28.  
  29.  
  30. # Copy to system clipboard
  31. #bind P paste-buffer
  32. #bind-key -T copy-mode-vi v send-keys -X begin-selection
  33. #bind-key -T copy-mode-vi y send-keys -X copy-selection
  34. #bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
  35. #bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
  36. ######################
  37. ### DESIGN CHANGES ###
  38. ######################
  39. # Powerline
  40. set-option -g status on
  41. set-option -g status-interval 2
  42. set-option -g status-justify "centre"
  43. set-option -g status-left-length 60
  44. set-option -g status-right-length 90
  45. set-option -g status-left "#(~/misc/tmux-powerline/powerline.sh left)"
  46. set-option -g status-right "#(~/misc/tmux-powerline/powerline.sh right)"
  47.  
  48. set-window-option -g window-status-current-format "#[fg=colour239, bg=colour27]⮀#[fg=colour255, bg=colour27] #I ⮁ #W #[fg=colour27, bg=colour239]⮀"
  49.  
  50. set -g status-bg colour239
  51. set -g status-fg white
  52.  
  53. # border colours
  54. set -g pane-border-style fg=colour26
  55. set -g pane-active-border-style fg=colour2
  56. set -g pane-active-border-style bg=default
  57.  
  58. # TMUX Plugins (TPM)
  59. set -g @plugin 'tmux-plugins/tmux-yank'
  60. set -g @plugin 'tmux-plugins/tmux-resurrect'
  61. #set -g @plugin 'tmux-plugins/tmux-cpu'
  62.  
  63. run-shell ~/.tmux/plugins/yank.tmux
  64. #run-shell ~/.tmux/plugins/cpu.tmux
  65.  
  66. run -b '~/.tmux/plugins/tpm/tpm'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement