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

47 行
1.5 KiB

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