I use PSLazyCompletion and would much prefer to symlink it, but everytime this package updates, it adds this line to my $profile that I have to delete.
|
### RocolateyTabCompletion ### |
|
`$RocolateyProfile = "$rocoTabCompletion" |
|
if (Test-Path(`$RocolateyProfile)) { |
|
Import-Module "`$RocolateyProfile" |
|
}`n |
|
"@ | Out-File $profile -Append -Encoding utf8 |
|
} |
|
} |
Also can be a one liner like
"Import-Module '$rocoTabCompletion' -ErrorAction SilentlyContinue"
or
"Import-Module '$rocoTabCompletion' -ErrorAction Ignore"