Advertisement
Guest User

.tmux.conf

a guest
May 15th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1.  
  2. ########################################################################
  3. ### tmux #############################################################
  4. ########################################################################
  5.  
  6. ### status bar #######################################################
  7. set -g status-bg black
  8. set -g status-fg white
  9. set-option -g status-justify centre
  10. set -g status-position bottom
  11. set -g status-right "%a. %b. %d, %I:%M"
  12. setw -g monitor-activity on
  13. set -g visual-activity on
  14. set -g status-interval 1
  15. ########################################################################
  16.  
  17.  
  18. ### locale ###########################################################
  19. set -g utf8 on
  20. set -g status-utf8 on
  21. ########################################################################
  22.  
  23.  
  24. ### windows start at one, not zero ###################################
  25. set -g base-index 1
  26. set -g pane-base-index 1
  27. ########################################################################
  28.  
  29. # rename windows automatically
  30. set-option -g allow-rename on
  31. set-window-option -g automatic-rename
  32.  
  33.  
  34. set -g default-terminal "screen-256color" # 256 color support
  35. set-option -g history-limit 256 # history buffer length
  36. set -sg escape-time 1 # lower command delay
  37. setw -g aggressive-resize on
  38. setw -g mode-keys vi
  39.  
  40.  
  41. ### shell ############################################################
  42. set -g default-command /bin/zsh
  43. set -g default-shell /bin/zsh
  44. ########################################################################
  45.  
  46.  
  47. ### autorename terminals #############################################
  48. set -g set-titles on
  49. ########################################################################
  50.  
  51.  
  52.  
  53. ########################################################################
  54. ### keybinds #########################################################
  55. ########################################################################
  56.  
  57. ### remap modkey #####################################################
  58. # NOTE: CTRL+A might interfere with bash’s “go to beginning of line” command
  59. unbind C-b
  60. set-option -g prefix C-a
  61. bind-key C-a send-prefix
  62. ########################################################################
  63.  
  64.  
  65. ### vim-like keybinds for windows and splits #########################
  66. # bind-key v split-window -h -c "#{pane_current_path}"
  67. # bind-key s split-window -v -c "#{pane_current_path}"
  68. bind h select-pane -L
  69. bind j select-pane -D
  70. bind k select-pane -U
  71. bind l select-pane -R
  72. ########################################################################
  73.  
  74.  
  75. ### reasonable pane splitting ########################################
  76. bind | split-window -h -c "#{pane_current_path}"
  77. bind - split-window -v -c "#{pane_current_path}"
  78. unbind '"'
  79. unbind %
  80. ########################################################################
  81.  
  82.  
  83. ### switch panes using Alt-arrow without prefix ######################
  84. bind -n M-Left select-pane -L
  85. bind -n M-Right select-pane -R
  86. bind -n M-Up select-pane -U
  87. bind -n M-Down select-pane -D
  88. ########################################################################
  89.  
  90.  
  91. ### resize panes #####################################################
  92. # bind-key -n M-Up resize-pane -U 15
  93. # bind-key -n M-Down resize-pane -D 15
  94. # bind-key -n M-Left resize-pane -L 15
  95. # bind-key -n M-Right resize-pane -R 15
  96. ########################################################################
  97.  
  98.  
  99. bind C-a send-prefix # pass through a ctrl-a if you press it twice
  100. bind-key b set-option status # toggle statusbar
  101.  
  102. ### bind r to reload config
  103. bind r source-file ~/.tmux.conf \; display "reloaded tmux config!"
  104.  
  105.  
  106. ########################################################################
  107. ### mouse ############################################################
  108. ########################################################################
  109. ### enable clickable windows, panes, resizable panes
  110. #set -g mode-mouse on
  111. #set -g mouse-select-window on
  112. #set -g mouse-select-pane on
  113. #set -g mouse-resize-pane on
  114. ###
  115.  
  116. # tmux 2.1 and later
  117. # set -g mouse on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement