relocate bash config

This commit is contained in:
Zynh Ludwig 2024-05-29 16:03:39 -07:00
parent 818af704a1
commit a8c727b880
2 changed files with 11 additions and 10 deletions

View file

@ -138,15 +138,6 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
programs.bash = {
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=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
# programs.hyprland.enable = true;
# environment.sessionVariables.NIXOS_OZONE_WL = "1";

View file

@ -1,5 +1,15 @@
{ inputs, ... }:
{ inputs, pkgs, ... }:
{
programs.bash = {
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=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
programs.fish = {
enable = true;
interactiveShellInit =