Find all files ending with ".sh" in the current directory and its subdirectories, and execute the command "sed -i 's/^/alias /' {}" on each of them.
find ~ -name "*.sh" -exec sed -i 's/^/alias /' {} \;