Advertisement
Guest User

Untitled

a guest
Jun 28th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. ### rebind hotkey
  2.  
  3. # prefix setting (screen-like)
  4. set -g prefix C-a
  5. unbind C-b
  6. bind C-a send-prefix
  7.  
  8. # reload config without killing server
  9. bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
  10.  
  11. # "|" splits the current window vertically, and "-" splits it horizontally
  12. unbind %
  13. bind | split-window -h
  14. bind - split-window -v
  15.  
  16. # Pane navigation (vim-like)
  17. bind h select-pane -L
  18. bind j select-pane -D
  19. bind k select-pane -U
  20. bind l select-pane -R
  21.  
  22. # Pane resizing
  23. bind -r Left resize-pane -L 4
  24. bind -r Down resize-pane -D 4
  25. bind -r Up resize-pane -U 4
  26. bind -r Right resize-pane -R 4
  27.  
  28.  
  29. ### other optimization
  30.  
  31. # set the shell you like (zsh, "which zsh" to find the path)
  32. # set -g default-command /bin/zsh
  33. # set -g default-shell /bin/zsh
  34.  
  35. # use UTF8
  36. # set -g utf8
  37. # set-window-option -g utf8 on
  38.  
  39. # display things in 256 colors
  40. set -g default-terminal "screen-256color"
  41.  
  42. # mouse is great!
  43. set-option -g mouse on
  44.  
  45. # history size
  46. set -g history-limit 10000
  47.  
  48. # fix delay
  49. set -g escape-time 0
  50.  
  51. # 0 is too far
  52. set -g base-index 1
  53. setw -g pane-base-index 1
  54.  
  55. # stop auto renaming
  56. setw -g automatic-rename off
  57. set-option -g allow-rename off
  58.  
  59. # renumber windows sequentially after closing
  60. set -g renumber-windows on
  61.  
  62. # window notifications; display activity on other window
  63. setw -g monitor-activity on
  64. set -g visual-activity on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement