all repos — acme @ main

fork of the acme editor from plan9port - keybinds, tweaks, config.h, etc

install.sh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ -z "$PLAN9" ]; then
  echo "PLAN9 not set;"
  echo "Please set it to the location of your plan9port installation."
  exit 1
fi

if [ $(whoami) != "root" ]; then
  mkdir -p ~/bin/9
  cp acme ~/bin/9/acme
  echo "acme has been installed to '${HOME}/bin/9/'"
else
  cp acme ${PLAN9}/bin/acme
  echo "acme has been installed to '${PLAN9}/bin/'"
fi