try this thing for bash

This commit is contained in:
TheWanderingCrow 2024-11-04 11:40:21 -05:00
parent 719c6149db
commit ff03038b8c

View file

@ -93,7 +93,7 @@
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login || LOGIN_OPTION=""
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';