Skip to content

Instantly share code, notes, and snippets.

@antics
Created August 21, 2021 13:31
Show Gist options
  • Save antics/d5aecd709be11440d92cf35fe736626e to your computer and use it in GitHub Desktop.
Save antics/d5aecd709be11440d92cf35fe736626e to your computer and use it in GitHub Desktop.
acme launcher
#!/bin/sh
export BROWSER=firefox
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 /usr/local/plan9/font/lucsans/unicode.8.font $1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment