I'm on CentOS 7.9 (Gnome Terminal 3.28.2) with
csh (yeah I know but work requirement) as my default shell. My problem is this: whenever I open a new tab in gnome terminal, the new tab redirects to
~/, rather than preserving the path of the old path. Say I'm currently at
/home/myself/project1/src/, I'd like my new tab to also be at
/home/myself/project1/src/, not back to
On our super old CentOS 6.10 machines (Gnome Terminal 2.31.3) where users are also using
csh as default, new tabs do preserve old paths as we want it.
bash doesn't show any problems. Whether on 6.10 or 7.9, users using
bash as the default shell always keep their old path when opening new tabs.
It seems like my issue is both related to the shell and Gnome Terminal. Frustratingly, the
/etc/csh.cshrc files on both CentOS 6.10 and 7.9 machines look the same, and I failed to find any toggles in Gnome Terminal's preferences.
So back to the title, when using
csh how can I let a new tab open start from the path of the old tab in gnome terminal instead of going back to
~/? Many Thanks!