288:fa2ce712a8b0
Anton Shestakov <av6@dwimlabs.net>, Mon, 16 Sep 2024 00:48:36 +0400
.hgrc: dp1 and dp2 aliases to diff for sanity-checks of merges An extra alias "d" is needed to make sure `hg d` still works after we add other commands starting with "d". `--from` and `--to` are hg 5.7+, they provide clearer UI, but you can still use `hg diff -r foo -r bar`.

previous change 56:49435f917654

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; }
DOC_DIR=$(cd "$(dirname "$0")" && pwd)
cd "$(mktemp -d)" && mkdir '~' && cd '~'
for what in 'exit' venv hg git root ; do
clear
grep -v '^\s*\(#\|$\)' "$DOC_DIR/prompt-session-$what.sh" | HISTFILE= bash -i
sleep 1 # otherwise "$ exit" is in a superposition of showing and not showing
import -window "$WINDOWID" "$DOC_DIR/prompt-$what.png"
mogrify -trim -background black -extent 800x "$DOC_DIR/prompt-$what.png"
done
clear
echo all done