acme_config/bin/a

29 lines
641 B
Plaintext
Raw Normal View History

2022-02-19 17:24:45 +00:00
#!/usr/bin/env bash
export SHELL="/bin/bash"
export acmeshell="/bin/bash"
export BROWSER=safari
export tabstop=4
export TERM=dumb
export PAGER=nobs
# Path to 'a' script itself
acme_bin_dir=$( cd $(dirname $0) && pwd )
# Where are the plumber rules?
acme_plumber_rules="$acme_bin_dir/../plumbing"
if [ "$(pgrep plumber)" ]; then
echo plumber is running
else
echo starting plumber
plumber
cat "$acme_plumber_rules" "$PLAN9/plumb/basic" | 9p write plumb/rules
fi
# In `win`, Node.js REPL looks nicer without ANSI codes
export NODE_NO_READLINE=1
2023-01-02 21:43:00 +00:00
# /mnt/font/AndaleMono/13a/font
acme -a -f /mnt/font/InputMonoNarrow-Regular/13a/font $1