tmux.conf 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # HEADER: ___ _ ___ _ _
  2. # HEADER: | _ \_ _ _ __ _ __ ___| |_ / __|___ _ _| |_ _ _ ___| |
  3. # HEADER: | _/ || | '_ \ '_ \/ -_) _| | (__/ _ \ ' \ _| '_/ _ \ |
  4. # HEADER: |_| \_,_| .__/ .__/\___|\__| \___\___/_||_\__|_| \___/_|
  5. # HEADER: |_| |_|
  6. # $Id: screen-keys.conf,v 1.6 2010/02/02 21:34:16 nicm Exp $
  7. #
  8. # By Nicholas Marriott. Public domain.
  9. #
  10. # This configuration file binds many of the common GNU screen key bindings to
  11. # appropriate tmux key bindings. Note that for some key bindings there is no
  12. # tmux analogue and also that this set omits binding some commands available in
  13. # tmux but not in screen.
  14. #
  15. # Note this is only a selection of key bindings and they are in addition to the
  16. # normal tmux key bindings. This is intended as an example not as to be used
  17. # as-is.
  18. # Set window notifications
  19. setw -g monitor-activity on
  20. set -g visual-activity on
  21. # Highlight active window
  22. set-window-option -g window-status-current-style bg=cyan
  23. set-window-option -g mode-keys vi
  24. unbind Escape
  25. # Set the prefix to ^A.
  26. unbind C-b
  27. set -g prefix ^A
  28. bind a send-prefix
  29. # Bind appropriate commands similar to screen.
  30. # lockscreen ^X x
  31. unbind ^X
  32. bind ^X lock-server
  33. unbind x
  34. bind x lock-server
  35. # screen ^C c
  36. unbind ^C
  37. bind ^C new-window
  38. bind c new-window
  39. # detach ^D d
  40. unbind ^D
  41. bind ^D detach
  42. # displays *
  43. unbind *
  44. bind * list-clients
  45. # next ^@ ^N sp n
  46. unbind ^@
  47. bind ^@ next-window
  48. unbind ^N
  49. bind ^N next-window
  50. unbind " "
  51. bind " " next-window
  52. unbind n
  53. bind n next-window
  54. # title A
  55. unbind A
  56. bind A command-prompt "rename-window %%"
  57. # other ^A
  58. unbind ^A
  59. bind ^A last-window
  60. # prev ^H ^P p ^?
  61. unbind ^H
  62. bind ^H previous-window
  63. unbind ^P
  64. bind ^P previous-window
  65. unbind p
  66. bind p previous-window
  67. unbind BSpace
  68. bind BSpace previous-window
  69. # windows ^W w
  70. unbind ^W
  71. bind ^W list-windows
  72. unbind w
  73. bind w list-windows
  74. # kill K k
  75. unbind K
  76. bind K confirm-before "kill-window"
  77. unbind k
  78. bind k confirm-before "kill-window"
  79. # redisplay ^L l
  80. unbind ^L
  81. bind ^L refresh-client
  82. unbind l
  83. bind l refresh-client
  84. # split -v |
  85. unbind |
  86. bind | split-window -h
  87. # split -h _
  88. unbind _
  89. bind _ split-window
  90. # Set color to tmux
  91. set -g default-terminal "screen-256color"
  92. # Set synchronize
  93. unbind ^s
  94. bind ^s set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
  95. # " windowlist -b
  96. unbind '"'
  97. bind '"' choose-window
  98. set -g history-limit 1000000
  99. set-option -g bell-action any
  100. set-option -g set-titles on
  101. set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
  102. set-option -g visual-bell on
  103. # Global setting for status line
  104. set-option -g status-justify left
  105. set-option -g status-left-length 40
  106. set-option -g status-style bg=#444444,fg=white
  107. set-option -g pane-active-border-style bg=yellow,fg=black
  108. set-option -g pane-border-style bg=yellow,fg=white
  109. setw -g window-status-style bg=default,fg=white
  110. setw -g window-status-current-style bg=cyan,fg=black
  111. setw -g window-status-activity-style bg=default,fg=red
  112. set -g status-left '#[fg=green][#[fg=yellow]#H#[fg=black]:#[fg=white]#S #[fg=green]][#[default]'
  113. set -g status-right '#[fg=green]][ #[fg=black]%Y-%m-%d #[fg=white]%R#[fg=green]]'
  114. # Style for display messages
  115. set-option -g message-style bg=yellow,fg=black
  116. bind r source-file ~/.tmux.conf\; display-message "Reading configuration"
  117. set -g default-terminal "screen-256color"
  118. source "/usr/share/powerline/bindings/tmux/powerline.conf"
  119. # Force utf-8
  120. set -gq status-utf8 on
  121. # force tmux to use utf-8
  122. setw -gq utf8 on
  123. new -d -s0 '. repo/renv/renv.sh && renv && . repo/bundler-exec/bundler-exec.sh && exec bash'
  124. neww -d '. repo/renv/renv.sh && renv && . repo/bundler-exec/bundler-exec.sh && exec bash'
  125. neww -d '. repo/renv/renv.sh && renv && . repo/bundler-exec/bundler-exec.sh && exec bash'
  126. neww -d '. repo/renv/renv.sh && renv && . repo/bundler-exec/bundler-exec.sh && exec bash'
  127. neww -d '. repo/renv/renv.sh && renv && . repo/bundler-exec/bundler-exec.sh && exec bash'
  128. neww -d '. repo/renv/renv.sh && renv && . repo/bundler-exec/bundler-exec.sh && exec bash'
  129. neww -d '. repo/renv/renv.sh && renv && . repo/bundler-exec/bundler-exec.sh && exec bash'
  130. neww -d -npodman 'exec /usr/local/bin/podman --log-level debug system service -t 0 unix:///tmp/podman.sock'