Permalink
Browse files

binding to remotecopy latest buffer

  • Loading branch information...
1 parent 573417e commit ed164f0dd29de644df1f72168d4e960ed6241b61 @justone committed Jul 9, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 .tmux.shared
View
@@ -16,6 +16,9 @@ bind l select-pane -R
# make it easy to grab a pane and put it into the current window
bind-key @ command-prompt -p "create pane from:" "join-pane -s ':%%'"
+# remotecopy the most recent buffer
+bind-key y save-buffer ~/.tmux-buffer \; run-shell "remotecopy foo || true" \; command-prompt -p "secret:" "run-shell \"cat ~/.tmux-buffer | remotecopy -s %%\""
+
# easily toggle synchronization (mnemonic: e is for echo)
bind e setw synchronize-panes on
bind E setw synchronize-panes off

0 comments on commit ed164f0

Please sign in to comment.