#!/bin/bash

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

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

/opt/local/libexec/bbcolors/bbcolors $EXTRA "$@"
