|
|
|
|
|
by ivank
1504 days ago
|
|
rpick() {
session=$(for i in $(tmux list-sessions -F '#S'); do
echo -e -n "$i\t"; { { tmux capture-pane -p -t "$i" | tr '\n' ' '; } || true; }
echo
done | fzf --exact --reverse | cut -f 1)
if [[ "$session" != "" ]]; then
tmux attach -t "$session"
fi
}
|
|