Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (12 sloc) 445 Bytes
#!/bin/bash -eu
# Bail if 'highlight' not found
if ! highlight -h > /dev/null 2> /dev/null; then
echo "highlight not found at PATH. 'brew install highlight' is one way to install it."
exit 1
fi
# Install themes
#
# conf_dir will be /usr/local/etc/highlight if installed iwth brew
conf_dir=$(highlight --print-config | awk -F'= ' '/HL_CONFIG_DIR/ {print $2}')
mkdir -p "${conf_dir}/themes"
cp -v highlight_themes/*.theme "${conf_dir}/themes"
You can’t perform that action at this time.