55:63de59630d29
Anton Shestakov <engored@ya.ru>, Sun, 07 Sep 2014 01:36:29 +0900
More commands in hg sessions: closed branch, tags, bookmarks.

next change 56:49435f917654
previous change 53:89d19a889252

docs/make-screenshots.sh

Permissions: -rwxr-xr-x

Other formats: Feeds:
#!/bin/bash
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 root ; do
clear
grep -v '^\s*\(#\|$\)' "./prompt-session-${what}.sh" | HISTFILE= bash -i
sleep 1 # otherwise "$ exit" is in a superposition of showing and not showing
import -window $WINDOWID "./prompt-${what}.png"
mogrify -trim -background black -extent 800x "./prompt-${what}.png"
done
clear
echo all done