nix develop: Source ~/.bashrc

Fixes #4104.
This commit is contained in:
Eelco Dolstra 2020-10-09 22:02:00 +02:00
parent 59bd6e87a4
commit 44349064f7

View file

@ -377,6 +377,10 @@ struct CmdDevelop : Common, MixEnvironment
script += fmt("exec %s\n", concatStringsSep(" ", args)); script += fmt("exec %s\n", concatStringsSep(" ", args));
} }
else {
script += "[ -n \"$PS1\" ] && [ -e ~/.bashrc ] && source ~/.bashrc;\n";
}
writeFull(rcFileFd.get(), script); writeFull(rcFileFd.get(), script);
stopProgressBar(); stopProgressBar();