Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. # First Tab =1
  2. set -g base-index 1
  3.  
  4. # Scroll Limit
  5. set -g history-limit 10000
  6.  
  7. # Enable mouse mode
  8. set -g mouse off
  9.  
  10. # Don't rename windows automatically
  11. set-option -g allow-rename off
  12.  
  13. # Change Prefix
  14. set -g prefix M-q
  15. bind M-q send-prefix
  16.  
  17. # Split Panes
  18. bind -n M-D split-window -h
  19. bind -n M-S split-window -v
  20.  
  21. # Create
  22. bind -n M-c new-window
  23. bind -n M-C new-session
  24.  
  25. # Window/Client Navigation
  26. bind -n M-p switch-client -p
  27. bind -n M-n switch-client -n
  28.  
  29. bind -n M-1 select-window -t :=1
  30. bind -n M-2 select-window -t :=2
  31. bind -n M-3 select-window -t :=3
  32. bind -n M-4 select-window -t :=4
  33. bind -n M-5 select-window -t :=5
  34. bind -n M-6 select-window -t :=6
  35. bind -n M-7 select-window -t :=7
  36. bind -n M-8 select-window -t :=8
  37. bind -n M-9 select-window -t :=9
  38. bind -n M-0 select-window -t :=10
  39.  
  40. # Panes Navigation
  41. bind -n M-a select-pane -L
  42. bind -n M-d select-pane -R
  43. bind -n M-w select-pane -U
  44. bind -n M-s select-pane -D
  45.  
  46. bind -n M-Left select-pane -L
  47. bind -n M-Right select-pane -R
  48. bind -n M-Up select-pane -U
  49. bind -n M-Down select-pane -D
  50.  
  51. bind -n M-l last-pane
  52. bind -n M-L last-window
  53. bind M-l switch-client -l
  54. bind M-L choose-client
  55.  
  56. # Find Window
  57. bind M-f command-prompt "find-window '%%'"
  58.  
  59. # Panes Transformation
  60. bind -n M-S-Right resize-pane -R 5
  61. bind -n M-S-Left resize-pane -L 5
  62. bind -n M-S-Up resize-pane -U 5
  63. bind -n M-S-Down resize-pane -D 5
  64.  
  65. bind -n M-f resize-pane -Z
  66. bind -n M-f resize-pane -Z
  67.  
  68. bind -n M-Space next-layout
  69.  
  70. # Rename Tab
  71. bind -n M-r command-prompt 'rename-window %%'
  72. bind -n M-R command-prompt 'rename-session %%'
  73.  
  74. # Scrolling
  75. bind -n Pageup copy-mode -u
  76. bind -n Pagedown send-keys Pagedown
  77.  
  78. # Kill Pane/Session
  79. bind -n M-x kill-pane
  80. bind -n M-X confirm-before -p "Kill #S (y/n)?" "run-shell 'tmux switch-client -n \\\; kill-session -t \"\$(tmux display-message -p \"#S\")\"'"
  81.  
  82. # Suspend Client
  83. bind M-z suspend-client
  84.  
  85. #Refresh Client
  86. bind M-r refresh-client
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement