Compare commits
2 commits
30754f5211
...
d49029f7cd
Author | SHA1 | Date | |
---|---|---|---|
Harald Hoyer | d49029f7cd | ||
Harald Hoyer | 97696ec554 |
|
@ -78,9 +78,7 @@ 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=""
|
||||
SHELL=/run/current-system/sw/bin/fish exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
||||
else
|
||||
[[ $SHELL == *fish ]] && SHELL=/run/current-system/sw/bin/bash
|
||||
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue