Skip to content

Commit

Permalink
Merge pull request #10688 from hraban/fix/develop-aliases
Browse files Browse the repository at this point in the history
fix: don’t expand aliases in develop stdenv setup
  • Loading branch information
roberth authored May 20, 2024
2 parents 67db9e0 + 6bf7edb commit 20ed0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/develop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ struct CmdDevelop : Common, MixEnvironment
}

else {
script = "[ -n \"$PS1\" ] && [ -e ~/.bashrc ] && source ~/.bashrc;\n" + script;
script = "[ -n \"$PS1\" ] && [ -e ~/.bashrc ] && source ~/.bashrc;\nshopt -u expand_aliases\n" + script + "\nshopt -s expand_aliases\n";
if (developSettings.bashPrompt != "")
script += fmt("[ -n \"$PS1\" ] && PS1=%s;\n",
shellEscape(developSettings.bashPrompt.get()));
Expand Down

0 comments on commit 20ed0c0

Please sign in to comment.