12 lines
352 B
Bash
Executable File
12 lines
352 B
Bash
Executable File
function bring_pane() {
|
|
windows=$(
|
|
tmux list-windows -F "#{window_active} #{window_index} #{window_name}" | sort -r | awk '{print $2 " : " $3}' \
|
|
| fzf-tmux -p --border-label="Bring pane" | awk '{print $1}' | sort -r
|
|
)
|
|
if [ -n "$windows" ]; then
|
|
echo $windows | xargs -n1 -I {i} tmux join-pane -s {i}
|
|
fi
|
|
}
|
|
|
|
|