您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

53 行
1.8 KiB

  1. # tmux.conf
  2. # SETUP_LOAD: source "DOTFILES_DIR/tmux.conf"
  3. run-shell 'tmux set -g status-right "${USER}@`hostname` | #(tmux -V) "'
  4. run-shell 'tmux set -g status-bg "$_HOSTCOLOR_1" >/dev/null'
  5. run-shell 'tmux set -g status-fg "$_HOSTCOLOR_2" >/dev/null'
  6. run-shell 'tmux set -g mode-bg "$_HOSTCOLOR_1" >/dev/null'
  7. run-shell 'tmux set -g mode-bg "$_HOSTCOLOR_2" >/dev/null'
  8. run-shell 'tmux set -g pane-active-border-fg "$_HOSTCOLOR_1" >/dev/null'
  9. unbind C-b
  10. set -g prefix C-z
  11. bind C-z send-prefix
  12. bind C-c command-prompt "new-window '%%'"
  13. bind C-r source-file ~/.tmux.conf \; display-message "Reloaded config !"
  14. # new-session: -A: "behaves like attach-session if session-name already exists"
  15. # -d: do not attach the created session
  16. bind C-s command-prompt -p "session name to switch to:" \
  17. "new-session -Ad -s '%1'\; switch-client -t '%1'"
  18. bind C-o command-prompt -p "session name to switch to:" \
  19. "new-session -Ad -s '%1'\; switch-client -t '%1'"
  20. set -g base-index 1
  21. set -g pane-base-index 1
  22. set -g renumber-windows on
  23. setw -g mode-keys vi
  24. setw -g mode-mouse off
  25. #set -g default-command /bin/bash
  26. #set -g default-path "$HOME"
  27. # try to set title of terminal tmux is running on
  28. # set -g set-titles off
  29. set -g display-panes-time 5000
  30. # <Index>|<Command>:<Title><Window flag>
  31. # Example: `1|emacs:.dotfiles*`
  32. set -g window-status-current-format "#I|#{pane_current_command}:#T#F"
  33. set -g window-status-format "#I|#{pane_current_command}:#T#F"
  34. # set window name automatically from command currently running
  35. set -g automatic-rename on
  36. # disable updating status-left and status-right
  37. set -g status-interval 0
  38. set -g status-keys emacs
  39. set -g message-bg white
  40. set -g message-fg black
  41. setw -g window-status-current-bg white
  42. setw -g window-status-current-fg black
  43. setw -g window-status-attr bold