4 printf "\033[31;1m%s\033[m\n" "$@"
8 default_prefix='/usr/local'
9 if echo "$PATH" | tr ':' '\n' | grep -qx "$HOME/.local/bin"; then
10 default_prefix="~/.local"
13 printf '\033[1mChoose where to install bp (default: %s):\033[m ' "$default_prefix"
15 if [ -z "$PREFIX" ]; then PREFIX="$default_prefix"; fi
16 PREFIX="${PREFIX/#\~/$HOME}"
18 if ! echo "$PATH" | tr ':' '\n' | grep -qx "$PREFIX/bin"; then
19 error "Your \$PATH does not include this prefix, so you won't be able to run tomo!" \
20 "Please put this in your .profile or .bashrc: export PATH=\"$PREFIX/bin:\$PATH\""
23 if command -v doas >/dev/null; then