Rename home folder to match account name (High Sierra)

Per Apple, assuming you're on OS X 10.7 or higher:

  1. Delete the orphaned home directory.
  2. Log out of the account you're renaming, then log in to a different administrator account.
  3. Go to the Users folder on the startup drive. The Users folder contains the home folder of the account you're renaming. Rename that account's home folder.
  4. Choose Apple menu > System Preferences, then click Users & Groups.
  5. Click the lock, then enter the administrator name and password that you used to log in.
  6. From the list of users, Control-click or right-click the user that you want to rename. Choose Advanced Options from the shortcut menu.
  7. Change the “Home directory” field to match the new name that you gave the home folder in the Users folder.
  8. Click OK, then quit System Preferences.
  9. Restart your Mac.
  10. Log in to the renamed account, then verify that your old files and folders are visible and the account is working as expected.