mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
change -l to explicitly load user profile
This commit is contained in:
1 parent
f2888e9eb6
commit
2d8a15af28
1 file changed
+1
-1
@@ -745,7 +745,7 @@ namespace Microsoft.PowerShell
|
||||
}
|
||||
else if (MatchSwitch(switchKey, "loadprofile", "l"))
|
||||
{
|
||||
// do nothing as we load profile by default, but this is needed to be compatible with POSIX shell expectations
|
||||
_skipUserInit = false;
|
||||
}
|
||||
else if (MatchSwitch(switchKey, "noprofile", "nop"))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user