I run zsh on my server and I want to alias the
exit command, because whenever I try to terminate my SSH session I must exit from
zsh and exit from
alias exit='exit;exit' to no avail.
I don't want to change how I start
zsh but I think it's not a very good solution. I've appended
How can avoid to type
exit twice to terminate my SSH session?