Combine default parameters and destructuring for a compact version of the defaults / overrides pattern.
function foo ({
bar = 'no',
baz = 'works!'
} = {}) {
#! /bin/zsh | |
setopt dotglob | |
for f in *; do mv "$f" "${f:1}"; done | |
unsetopt dotglob |