Skip to content

Instantly share code, notes, and snippets.

View yubink's full-sized avatar

Yubin Kim yubink

View GitHub Profile
@yubink
yubink / inall.sh
Created September 3, 2012 18:16
Runs the specified command (provided by the first argument) in all tmux panes for every window regardless if applications are running in the terminal or not.
#!/bin/bash
# Runs the specified command (provided by the first argument) in all tmux panes
# for every window regardless if applications are running in the terminal or not.
function execute_in_all_panes {
# Notate which window/pane we were originally at
ORIG_WINDOW_INDEX=`tmux display-message -p '#I'`
ORIG_PANE_INDEX=`tmux display-message -p '#P'`