Compare commits

..

2 commits

Author SHA1 Message Date
Harald Hoyer 30754f5211 different fish exec workaround
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-03-25 11:40:05 +01:00
Harald Hoyer d94278f8ac flake update
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-03-25 11:39:54 +01:00

View file

@ -78,7 +78,9 @@ in
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=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
SHELL=/run/current-system/sw/bin/fish exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
else
[[ $SHELL == *fish ]] && SHELL=/run/current-system/sw/bin/bash
fi
'';
};