mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
don't set SHELL automatically based on programs.<shell>.enable
This commit is contained in:
parent
1804b8ecd2
commit
079db5db5b
5 changed files with 4 additions and 9 deletions
|
@ -77,7 +77,7 @@ in
|
|||
|
||||
environment.loginShell = mkOption {
|
||||
type = types.str;
|
||||
default = "$SHELL";
|
||||
default = "$SHELL -l";
|
||||
description = "Configure default login shell.";
|
||||
};
|
||||
|
||||
|
|
|
@ -271,6 +271,9 @@
|
|||
zle -N up-line-or-beginning-search
|
||||
'';
|
||||
|
||||
environment.loginShell = "${pkgs.zsh}/bin/zsh -l";
|
||||
environment.variables.SHELL = "${pkgs.zsh}/bin/zsh";
|
||||
|
||||
environment.variables.LANG = "en_US.UTF-8";
|
||||
|
||||
environment.shellAliases.g = "git log --pretty=color -32";
|
||||
|
|
|
@ -45,9 +45,6 @@ in
|
|||
"/share/bash-completion/completions"
|
||||
];
|
||||
|
||||
environment.loginShell = mkDefault "bash -l";
|
||||
environment.variables.SHELL = mkDefault "${pkgs.bashInteractive}/bin/bash";
|
||||
|
||||
environment.etc."bashrc".text = ''
|
||||
# /etc/bashrc: DO NOT EDIT -- this file has been generated automatically.
|
||||
# This file is read for interactive shells.
|
||||
|
|
|
@ -105,9 +105,6 @@ in
|
|||
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
|
||||
environment.loginShell = "zsh -l";
|
||||
environment.variables.SHELL = "${pkgs.zsh}/bin/zsh";
|
||||
|
||||
environment.etc."zshenv".text = ''
|
||||
# /etc/zshenv: DO NOT EDIT -- this file has been generated automatically.
|
||||
# This file is read for all shells.
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
|
||||
echo >&2 "checking setEnvironment in /etc/zshenv"
|
||||
fgrep '. ${config.system.build.setEnvironment}' ${config.out}/etc/zshenv
|
||||
echo >&2 "checking SHELL in setEnvironment"
|
||||
grep 'export SHELL="${pkgs.zsh}/bin/zsh"' ${config.system.build.setEnvironment}
|
||||
echo >&2 "checking nix-shell return /etc/zshenv"
|
||||
grep 'if test -n "$IN_NIX_SHELL"; then return; fi' ${config.out}/etc/zshenv
|
||||
echo >&2 "checking zshenv.d in /etc/zshenv"
|
||||
|
|
Loading…
Reference in a new issue