Anton Shestakov <engored@ya.ru>, Thu, 04 Sep 2014 15:28:56 +0900
Smarter make-screenshots.sh.
docs/make-screenshots.sh
Permissions: -rwxr-xr-x
command -v import
&>/dev/null
|| { echo "this needs imagemagick"; exit 1; } [[ $TERM == 'linux' ]] && { echo "this doesn't work in a tty"; exit 2; } [[ $(tput cols
) -le
100 ]] && { echo 'Maximize the terminal window and press enter.'; read
; } cd "$(dirname
"${BASH_SOURCE[0]}")" for what
in 'exit' venv hg git
; do grep -v
'^\s*\(#\|$\)' "./prompt-session-${what}.sh" | bash -i
import -window
$WINDOWID "./prompt-${what}.png" mogrify -trim -background black -extent 800x
"./prompt-${what}.png"