#!/bin/sh # sets the 'active' class on an item if the url matches the directory if [ "$(dirname "$ZS_URL")" = $1 ]; then printf ' class=active' ''; fi