Guest User

Untitled

a guest
Jan 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. unbind-key C-b
  2. set -g prefix C-a
  3. bind C-a send-prefix
  4.  
  5.  
  6. #base setting
  7. set-option -g mouse on
  8. setw -g mode-keys vi
  9. set-option -g allow-rename off
  10. set -g base-index 1
  11. setw -g pane-base-index 1
  12. set -g renumber-windows on
  13.  
  14. bind r source-file ~/.tmux.conf \; display "Config Reloading..."
  15. bind e neww -n tmux-config "\${EDITOR:-vim} ~/.tmux.conf"
  16.  
  17. #rename window
  18. #set -wg allow-rename on
  19. #set -wg automatic-rename on
  20.  
  21. # shell下的Ctrl+a切换到行首在此配置下失效,此处设置之后Ctrl+a再按a即可切换至shell行首
  22. bind-key C-a last-window # 方便切换,个人习惯
  23. bind-key a send-prefix
  24.  
  25. #up
  26. bind-key k select-pane -U
  27. #down
  28. bind-key j select-pane -D
  29. #left
  30. bind-key h select-pane -L
  31. #right
  32. bind-key l select-pane -R
  33.  
  34. # split window
  35. # vertical split (prefix -)
  36. unbind '"'
  37. bind - splitw -v -c "#{pane_current_path}"
  38. # horizontal split (prefix |)
  39. unbind %
  40. bind \ splitw -h -c "#{pane_current_path}"
  41.  
  42. #bind copy to system clip
  43. bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'
  44.  
  45. # 状态栏
  46. # 颜色
  47. #set -g status-bg '#0087ff'
  48. #set -g status-fg '#ffffd7'
  49. #set -g message-style "bg=#007aac, fg=#ffffd7" # tomorrow night blue, base3
  50. #set -g status-style "bg=#0087ff, fg=#ffffd7" # tomorrow night blue, base3
  51. # 对齐方式
  52. #set-option -g status-justify centre
  53.  
  54. # 左下角
  55. #set-option -g status-left '#[bg=#0087ff,fg=#ffffd7] ❐#S '
  56. #set-option -g status-left-length 20
  57.  
  58. # 窗口列表
  59. #set -g window-status-format ' #I:#W '
  60. #set -g window-status-current-format ' #I:#W🛠 '
  61. #setw -g window-status-current-bg red
  62. # 右下角
  63. #set -g status-right "#{?client_prefix, ⌨ , } #[bg=#0087ff] #(whoami)@#h #[bg=red] %Y-%m-%d %H:%M "
  64.  
  65. run-shell ~/.tmux/tmux-resurrect/resurrect.tmux
  66. run-shell ~/.tmux/tmux-continuum/continuum.tmux
  67. set -g @continuum-save-interval '60'
  68.  
  69. #theme-pack
  70. source-file "${HOME}/.tmux-themepack/powerline/default/magenta.tmuxtheme"
Add Comment
Please, Sign In to add comment