configure bash script to shorten in appropriate places