bash custom with logic for color use