@glitcher32 usermod -m -d /home/[new username] -l [new username] pi
Run as root (i.e. logged out of the pi user), that should do it all in one command 😅
You'll probably also need to change the sudoers file:
export EDITOR=nano && sudo -E visudo
(replace anywhere it says pi in that file with the new username)