Permalink
Browse files

Updated tmux configuration for OME system administration.

Added various key bindings to .tmux.conf, including shell script that opens
multiple panes simultaneously, a pane synchronization option, and a zoom
option.

Added machines directory that lists by environment the server names. This is
used by the tmux-multistart script.
  • Loading branch information...
1 parent 4be7056 commit 9621961d34aa796d4e1394e58429cee5d416da77 @zanshin committed Dec 17, 2013
Showing with 66 additions and 0 deletions.
  1. +5 −0 machines/alpha
  2. +5 −0 machines/as
  3. +3 −0 machines/beta
  4. +3 −0 machines/dev
  5. +4 −0 machines/dev-txhub
  6. +5 −0 machines/id
  7. +5 −0 machines/id-alpha
  8. +4 −0 machines/medblog
  9. +1 −0 machines/prod
  10. +3 −0 machines/test-txhub
  11. +4 −0 machines/toolmon
  12. +2 −0 machines/txhub
  13. +5 −0 machines/web
  14. +17 −0 tmux/tmux.conf
View
@@ -0,0 +1,5 @@
+ome-alpha-as1
+ome-alpha-as2
+ome-alpha-as3
+ome-alpha-as4
+
View
@@ -0,0 +1,5 @@
+ome-as3
+ome-as4
+ome-as5
+ome-as6
+
View
@@ -0,0 +1,3 @@
+ome-beta-as1
+ome-beta-as2
+
View
@@ -0,0 +1,3 @@
+ome-dev-as1
+ome-dev-as2
+
View
@@ -0,0 +1,4 @@
+ome-dev-txhub1
+ome-dev-txhub2
+ome-dev-txhub3
+
View
@@ -0,0 +1,5 @@
+ome-id1
+ome-id2
+ome-id3
+ome-id4
+
View
@@ -0,0 +1,5 @@
+ome-alpha-id1
+ome-alpha-id2
+ome-alpha-id3
+ome-alpha-id4
+
View
@@ -0,0 +1,4 @@
+ome-media1
+ome-media2
+ome-blog1
+
View
View
@@ -0,0 +1,3 @@
+ome-test-txhub1
+ome-test-txhub2
+
View
@@ -0,0 +1,4 @@
+ome-tools1
+ome-mon1
+veld
+trebor
View
@@ -0,0 +1,2 @@
+ome-txhub1
+ome-txhub2
View
@@ -0,0 +1,5 @@
+ome-web1
+ome-web2
+ome-web3
+ome-web4
+web5
View
@@ -49,6 +49,11 @@ bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
+# C-l for even-vertical arrangement and C-o to zoom current pane
+bind-key C-l select-layout even-vertical
+bind-key C-v select-layout even-horizontal
+bind-key C-o resize-pane -y 1000
+
# Sync panes
bind C-s set-window-option synchronize-panes
@@ -79,6 +84,18 @@ bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
bind y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy '
bind C-y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy '
+# -----------------------
+# Multistart panes
+# ----------------------
+bind-key P run-shell 'tmux-multistart as'
+bind-key A run-shell 'tmux-multistart alpha'
+bind-key B run-shell 'tmux-multistart beta'
+bind-key W run-shell 'tmux-multistart web'
+bind-key D run-shell 'tmux-multistart dev'
+bind-key T run-shell 'tmux-multistart txhub'
+
+bind-key C command-prompt -p "machine(s)/group: " "run-shell 'tmux-multistart %1'"
+
# ----------------------
# set some pretty colors
# ----------------------

0 comments on commit 9621961

Please sign in to comment.