1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

bash: remove shell wrapper

This commit is contained in:
Daiderd Jordan 2018-01-20 01:34:45 +01:00
parent abd9a7c2fe
commit 630ab79197
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -3,18 +3,7 @@
with lib;
let
cfg = config.programs.bash;
shell = pkgs.runCommand pkgs.bashInteractive.name
{ buildInputs = [ pkgs.makeWrapper ]; }
''
source $stdenv/setup
mkdir -p $out/bin
makeWrapper ${pkgs.bashInteractive}/bin/bash $out/bin/bash
'';
in
{
@ -56,8 +45,8 @@ in
"/share/bash-completion/completions"
];
environment.loginShell = mkDefault "${shell}/bin/bash -l";
environment.variables.SHELL = mkDefault "${shell}/bin/bash";
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.