29 lines
641 B
Bash
Executable File
29 lines
641 B
Bash
Executable File
#!/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
|
|
|
|
# /mnt/font/AndaleMono/13a/font
|
|
acme -a -f /mnt/font/InputMonoNarrow-Regular/13a/font $1
|