Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'` |