I saw you linked an bug report on Arch Wiki fish shell with an issues between the bashrc fish launch script and gnome shell.
I debugged it a little bit and came up with the fix:
if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" && -z ${BASH_EXECUTION_STRING} ]]
then
exec fish
fi
For some reason gnome shell launches the bash with -c commands and manually sources bashrc. BASH_EXECUTION_STRING will indicate that bash was launched with -c arguments.
I saw you linked an bug report on Arch Wiki fish shell with an issues between the bashrc fish launch script and gnome shell.
I debugged it a little bit and came up with the fix:
For some reason gnome shell launches the bash with
-ccommands and manually sources bashrc.BASH_EXECUTION_STRINGwill indicate that bash was launched with-carguments.