From 08554ae7179b2513b14ef781e4b851ef80b6039c Mon Sep 17 00:00:00 2001 From: Pierre-Edouard Portier Date: Sat, 19 Feb 2022 18:24:45 +0100 Subject: [PATCH] a to start acme --- bin/a | 27 +++++++++++++++++++++++++++ plumbing | 0 2 files changed, 27 insertions(+) create mode 100644 bin/a create mode 100644 plumbing diff --git a/bin/a b/bin/a new file mode 100644 index 0000000..1a67c60 --- /dev/null +++ b/bin/a @@ -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 diff --git a/plumbing b/plumbing new file mode 100644 index 0000000..e69de29