summaryrefslogtreecommitdiff
path: root/bin/menuscripts/mcurs
blob: 4349e0b52c07f4cbf7c3f0bfc8f9360af3f3c31b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# requirements
which "$BROWSER" > /dev/null || exit 1

choice="$(find "${1:-$HOME/docs/school}" |
	grep -i "cursus/index.html" 2> /dev/null |
	sed "s;$HOME;~;" | commander -x -d -c)"
[ "$choice" ] && exit 1

$BROWSER "$choice"