Change from zsh to bash autologin

Using “chsh” I was able to change from zsh to bash, but on reboot, no longer autologin.

Add this to the end of ~/.bash_profile:

[[ -z $DISPLAY ]] && [[ $XDG_VTNR -eq 1 ]] && exec startx -- vt1 &>/dev/null
1 Like

I made a mistake. It already autologin, its autostart that I’m after.
It autologin and autostarts using zsh, but with bash it only autologin.

edit:ok, that actually worked. On boot though some message appears complaining about bash and neofetch.