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.

tmux.conf 1.9 KiB

10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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-style bg=$_HOSTCOLOR_1,fg=$_HOSTCOLOR_2 >/dev/null'
  5. run-shell 'tmux set -g mode-style bg=$_HOSTCOLOR_1,fg=$_HOSTCOLOR_2 >/dev/null'
  6. run-shell 'tmux set -g pane-active-border-style fg=$_HOSTCOLOR_1 >/dev/null'
  7. unbind C-b
  8. set -g prefix C-z
  9. bind C-z send-prefix
  10. bind C-c command-prompt "new-window '%%'"
  11. bind C-r source-file ~/.tmux.conf \; display-message "Reloaded config !"
  12. # new-session: -A: "behaves like attach-session if session-name already exists"
  13. # -d: do not attach the created session
  14. bind C-o command-prompt -p "session name to switch to:" \
  15. "new-session -Ad -s '%1'\; switch-client -t '%1'"
  16. # Use w instead
  17. unbind s
  18. bind w choose-tree -GZ
  19. set -g base-index 1
  20. set -g pane-base-index 1
  21. set -g renumber-windows off
  22. set -g history-limit 10000
  23. setw -g mode-keys vi
  24. #setw -g mode-mouse off
  25. #set -g default-command /bin/bash
  26. # Use pasteboard on MacOS
  27. run-shell 'test "`uname`" = Darwin && tmux bind-key -T copy-mode-vi "Enter" send-keys -X copy-pipe-and-cancel "pbcopy"'
  28. run-shell 'test "`uname`" = Darwin && tmux bind-key "]" run "pbpaste | tmux load-buffer - && tmux paste-buffer"'
  29. #set -g default-path "$HOME"
  30. # try to set title of terminal tmux is running on
  31. # set -g set-titles off
  32. set -g display-panes-time 5000
  33. # <Index>|<Command>:<Title><Window flag>
  34. # Example: `1|emacs:.dotfiles*`
  35. set -g window-status-current-format "#I|#{pane_current_command}:#T#F"
  36. set -g window-status-format "#I|#{pane_current_command}:#T#F"
  37. # set window name automatically from command currently running
  38. set -g automatic-rename on
  39. # disable updating status-left and status-right
  40. set -g status-interval 0
  41. set -g status-keys emacs
  42. set -g message-style bg=white,fg=black
  43. setw -g window-status-current-style bg=white,fg=black
  44. #setw -g window-status-attr bold