Skip to content

Instantly share code, notes, and snippets.

@misshie
Last active November 8, 2015 23:43
Show Gist options
  • Save misshie/1f26e92c1b60bfe7e8b7 to your computer and use it in GitHub Desktop.
Save misshie/1f26e92c1b60bfe7e8b7 to your computer and use it in GitHub Desktop.
An application sample of "peco" to select attaching byobu session
#!/bin/bash
sel=$(byobu ls | peco | cut -d ":" -f 1)
if [ ! -z "${sel}" ] ; then
byobu a -t ${sel}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment