I want to make fish
the default Interactive shell, but do not want to set it as the login shell as stated in the Arch Wiki and Gentoo Wiki. I have followed the instructions mentioned there, however I am facing a problem - At the login, I give the credentials to the user, it logs in, but after reading the .bashrc
it logout quickly and I am back at the login screen.
My .bashrc
:
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
exec /usr/bin/fish
When I login with another user on the system I find that $-
= himGHs
PS:
- There are no dm installed, thus login screen is the default text interface in the console.
- Debian 10 x64 bit
- Default shell is
bash
\usr\bin\fish
exists