Avoid using aliases in profile.ps1

Aliases such as `ls` may have been overridden in the user's profile script and the resulting behavior may be different from `Get-ChildItem`. For example binding `ls` to GNU `ls.exe` generates an error if there are no matching files.
This commit is contained in:
Pero Pejovic 2017-10-18 13:16:54 -07:00 committed by Benjamin Staneck
parent a95cd140ef
commit 68d9425c89

2
vendor/profile.ps1 vendored
View File

@ -127,7 +127,7 @@ if (-not (test-path "$ENV:CMDER_ROOT\config\profile.d")) {
}
pushd $ENV:CMDER_ROOT\config\profile.d
foreach ($x in ls *.ps1) {
foreach ($x in Get-ChildItem *.ps1) {
# write-host write-host Sourcing $x
. $x
}