#!/bin/bash

# Install default color schemes
SCHEMES="$HOME/Library/Application Support/BBColors"
mkdir -p "$SCHEMES"
cp -np @PREFIX@/share/bbcolors/schemes/*.bbcolors "$SCHEMES"

# Affect TextWrangler instead of BBEdit if called as "twcolors"
EXTRA=""
if [ "twcolors" == "$(basename "$0")" ]; then
    EXTRA="-tw"
fi

@PREFIX@/libexec/bbcolors/bbcolors $EXTRA "$@"
