You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.7 KiB

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