Skip to content

Instantly share code, notes, and snippets.

@romuloceccon
Created October 20, 2017 16:25
Show Gist options
  • Select an option

  • Save romuloceccon/93f2b07f9ea3152da94054675faf21bf to your computer and use it in GitHub Desktop.

Select an option

Save romuloceccon/93f2b07f9ea3152da94054675faf21bf to your computer and use it in GitHub Desktop.
Opens the printscreen file generated by Byobu via Shift+F7
#! /bin/bash
[[ -z "$BYOBU_RUN_DIR" ]] && \
echo "Not a Byobu session!" 1>&2 && exit 1
[[ ! -e $BYOBU_RUN_DIR/printscreen ]] && \
echo "No printscreen found! (try pressing Shift+F7)" 1>&2 && exit 1
geany $BYOBU_RUN_DIR/printscreen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment