Last active
November 8, 2015 23:43
-
-
Save misshie/1f26e92c1b60bfe7e8b7 to your computer and use it in GitHub Desktop.
An application sample of "peco" to select attaching byobu session
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 | |
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