]> Sergey Matveev's repositories - dotfiles.git/blobdiff - tmux/.tmux/bin/common.sh
Refactored tmux fzf menus
[dotfiles.git] / tmux / .tmux / bin / common.sh
diff --git a/tmux/.tmux/bin/common.sh b/tmux/.tmux/bin/common.sh
new file mode 100644 (file)
index 0000000..49936a8
--- /dev/null
@@ -0,0 +1,9 @@
+paste()
+{
+    local pane="$1"
+    local cmd="$2"
+    tmux set-buffer "$cmd"
+    tmux paste-buffer -t "$pane"
+    tmux delete-buffer
+    tmux send-keys -t "$pane" Enter
+}