3 I'm using this script to spawn acme on OpenBSD in all its glory!
10 echo '$PLAN9 is not defined!'
14 Provide a sane environment for acme
22 Most of the utilities from plan9ports binds sockets in NAMESPACE, which
23 is /tmp/ns.$USER.$DISPLAY by default. I'd like to have different
24 namespaces per acme session, so I'm defining the env variable.
26 Yes, using $pid ($$ in bourne shell) is discouraged to generate "random"
27 values, but here it's done on purpose: every program spawned inside
28 *this* terminal will share the same namespace.
30 NAMESPACE=/tmp/ns.$user.$pid
33 Start the plumber and fontsrv
39 I've used Go Mono for a while, but I'm falling in love with bitmaps
42 font=/usr/local/plan9/font/fixed/unicode.7x14.font
43 # font=/mnt/font/GoMono/10a/font
44 FONT=/mnt/font/InputSans-Regular/10a/font
48 $PLAN9/bin/acme -a -f $font -F $FONT $* &
51 wait a bit for acme to set up its things and start autoacme
56 exec acmeeval 'autoacme '$home'/bin/acmeconfig'
60 Then wait for acme to terminate
64 and stop acmeeval (just in case) and fontsrv
69 wait a little bit more
73 and then kill the namespace before quitting