by yNeolh · 6y ago · 0 comments
alias reload="exec -l $SHELL"
Which I copied from somewhere, I don't know how specific it is but maybe it helps someone :) export SHELL=/sbin/nologin # or /usr/sbin/nologin, or equivalent on your system
exec -l $SHELL
You want zsh, so just use zsh.As for -l, exec zsh -l and exec -l zsh both replace the current shell with a login zsh, so they are effectively the same.