Make rep more bash-like, fix indentation, make it work with functions; add docs to explain why rep can't work with aliases