Specify the shell, other than the default bash (in this case, the zsh package should have been installed in the target system)

arch-chroot

  • Enhanced `chroot` command to help in the Arch Linux installation process.
    More information: <https://man.archlinux.org/man/arch-chroot.8>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

arch-chroot {{path/to/new/root}} {{zsh}}

click the source code to copy install arch-chroot on any operating system with command-not-found.com