scripts/functions.{ba,z}sh: update