acme/bin/a

28 lines
607 B
Text
Raw Normal View History

2017-01-26 19:29:57 +03:00
#!/usr/bin/env bash
export SHELL="$PLAN9/bin/rc"
export acmeshell="$PLAN9/bin/rc"
2017-08-14 11:06:38 +03:00
export BROWSER=safari
2017-01-26 19:29:57 +03:00
export tabstop=4
export TERM=dumb
export PAGER=nobs
2017-08-14 18:35:53 +03:00
# Path to 'a' script itself
acme_bin_dir=$( cd $(dirname $0) && pwd )
# Where are the plumber rules?
acme_plumber_rules="$acme_bin_dir/../plumbing"
2017-01-26 19:29:57 +03:00
if [ "$(pgrep plumber)" ]; then
echo plumber is running
else
echo starting plumber
plumber
2017-08-14 18:35:53 +03:00
cat "$acme_plumber_rules" "$PLAN9/plumb/basic" | 9p write plumb/rules
2017-01-26 19:29:57 +03:00
fi
2018-01-14 00:06:34 +03:00
# In `win`, Node.js REPL looks nicer without ANSI codes
export NODE_NO_READLINE=1
2017-01-26 19:29:57 +03:00
acme -a -f /mnt/font/Menlo-Regular/12a/font $1