a to start acme
This commit is contained in:
parent
047ffa7733
commit
08554ae717
|
@ -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
|
Loading…
Reference in New Issue