Try defining a function instead of an alias in your .bashrc:
.bashrc
function cap() { prename 's/(^[a-z]?)/\U$1/' * }
Try defining a function instead of an alias in your
.bashrc
: