On Fri, 2021-12-03 at 22:05 +0900, Osamu Aoki wrote:
> ...
> If you want to use different shell for Linux console or ssh connected terminal
> console, I think setting in ~/.bashrc as `exec /usr/bin/zsh -i` should give 
> you what
> you want, I think (need to be tested but I hope you get my point). I think 
> delay of
> starting bash has minimal damage.

To be precise, insert `exec /usr/bin/zsh -i` as:


---
# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

exec /usr/bin/zsh -i
---

> To conclude, the old ways of setting login-shell via chsh is deprecated. With 
> the
> above mentioned methods, any shells found on Debian including ones totally 
> non-
> POSIX can be your login interactive shell.
> ...

Osamu

Reply via email to