#!/bin/sh # sets the 'active' class on an item if the url matches the directory urlpath=$(dirname "$ZS_URL") test "$1" = $urlpath && printf "active" || true