Last active
January 8, 2024 08:38
-
-
Save anonhostpi/c9117bc3e344898690624dbb804faa19 to your computer and use it in GitHub Desktop.
Simple edit profile in code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/anonhostpi/c9117bc3e344898690624dbb804faa19 | |
function Edit-Profile { | |
param( | |
[Parameter(Position=0)] | |
[ValidateSet("CurrentUserCurrentHost", "CurrentUserAllHosts", "AllUsersCurrentHost", "AllUsersAllHosts")] | |
[string]$Type = "CurrentUserCurrentHost" | |
) | |
code ($Profile.$Type | Split-Path -Parent) $Profile.$Type | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment