mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
swithin back to zsh
This commit is contained in:
parent
ff03038b8c
commit
b992372fb1
1 changed files with 7 additions and 12 deletions
|
|
@ -88,21 +88,16 @@
|
|||
];
|
||||
};
|
||||
|
||||
# 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 = {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autosuggestions = {
|
||||
enable = true;
|
||||
async = true;
|
||||
};
|
||||
};
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
# Configure pulseaudio
|
||||
hardware.graphics.enable32Bit = config.module.gaming.enable;
|
||||
hardware.pulseaudio.support32Bit = config.module.gaming.enable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue