Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

58 righe
2.0 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-fg "$_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-o command-prompt -p "session name to switch to:" \
  17. "new-session -Ad -s '%1'\; switch-client -t '%1'"
  18. # Use w instead
  19. unbind s
  20. bind w choose-tree -GZ
  21. set -g base-index 1
  22. set -g pane-base-index 1
  23. set -g renumber-windows off
  24. setw -g mode-keys vi
  25. #setw -g mode-mouse off
  26. #set -g default-command /bin/bash
  27. # Use pasteboard on MacOS
  28. run-shell 'test "`uname`" = Darwin && tmux bind-key -T copy-mode-vi "Enter" send-keys -X copy-pipe-and-cancel "pbcopy"'
  29. run-shell 'test "`uname`" = Darwin && tmux bind-key "]" run "pbpaste | tmux load-buffer - && tmux paste-buffer"'
  30. #set -g default-path "$HOME"
  31. # try to set title of terminal tmux is running on
  32. # set -g set-titles off
  33. set -g display-panes-time 5000
  34. # <Index>|<Command>:<Title><Window flag>
  35. # Example: `1|emacs:.dotfiles*`
  36. set -g window-status-current-format "#I|#{pane_current_command}:#T#F"
  37. set -g window-status-format "#I|#{pane_current_command}:#T#F"
  38. # set window name automatically from command currently running
  39. set -g automatic-rename on
  40. # disable updating status-left and status-right
  41. set -g status-interval 0
  42. set -g status-keys emacs
  43. set -g message-bg white
  44. set -g message-fg black
  45. setw -g window-status-current-bg white
  46. setw -g window-status-current-fg black
  47. #setw -g window-status-attr bold