a to start acme

This commit is contained in:
Pierre-Edouard Portier 2022-02-19 18:24:45 +01:00
parent 047ffa7733
commit 08554ae717
2 changed files with 27 additions and 0 deletions

27
bin/a Normal file
View File

@ -0,0 +1,27 @@
#!/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
acme -a -f /mnt/font/AndaleMono/13a/font $1

0
plumbing Normal file
View File