aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nix/develop.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc
index a46ea39b6..f763e8ba0 100644
--- a/src/nix/develop.cc
+++ b/src/nix/develop.cc
@@ -377,6 +377,10 @@ struct CmdDevelop : Common, MixEnvironment
script += fmt("exec %s\n", concatStringsSep(" ", args));
}
+ else {
+ script += "[ -n \"$PS1\" ] && [ -e ~/.bashrc ] && source ~/.bashrc;\n";
+ }
+
writeFull(rcFileFd.get(), script);
stopProgressBar();