mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-13 10:34:10 -05:00
fish plugins
This commit is contained in:
parent
930d54379f
commit
0f5b263422
2 changed files with 12 additions and 0 deletions
|
|
@ -88,6 +88,17 @@
|
|||
];
|
||||
};
|
||||
|
||||
# REASONING: fish is not a POSIX compliant shell so if something happens we need to use bash as the login shell to prevent an irrecoverable shell
|
||||
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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@
|
|||
# Fish shell stuff
|
||||
[
|
||||
fishPlugins.tide
|
||||
procps
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue