How to override the default dir alias in Powershell?

Use the -Option parameter of Set-Alias.

Set-Alias -Name dir -Value Set-ChildItemColor -Option AllScope

See Get-Help Set-Alias and Get-Help about_Scope for details.