
🔖 https://blog.lksz.me/editing-with-ease/ ✏️ Fixed $MyPSScriptRoot typo ✨ Get-ScopeDepth 🐛 Get-MyAliases didn't work correctly when sub-scoped, fixed the issue 🚚 Reload-MyAliases is now Reload-MyScripts 🐛 Reload-MyScripts loads scripts from $MyPSScriptRoot/profile.d subdir 📝 README updated to reflect change of script name and typo
6 lignes
203 o
PowerShell
6 lignes
203 o
PowerShell
[CmdletBinding(SupportsShouldProcess)]param(
|
|
[switch]$sudo,
|
|
[switch]$Force
|
|
)
|
|
|
|
Edit-TextFile -sudo:$sudo $( Get-Profiles | Where-Object { $_.Exists -or $Force } | Select-Object -ExpandProperty Path )
|