-
-
Notifications
You must be signed in to change notification settings - Fork 965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerShell Core global config file #924
Comments
I tried to create this |
I use this snippet all the time for applications that don't come with a file that needs to be persisted, or only creates it after being run. |
@BlackPowerade It still renames "profile.ps1" to "profile.ps1.original" and persists a folder called "profile.ps1". |
@Naomi010Sentzke Sorry, forgot to mention it doesn't work when used in |
@BlackPowerade Stop confusing users and spreading clearly incorrect information. Doing persist checks inside post-install is completely nonsense as it leads to anything. You can do anything to
Persist checks has to be done in |
Yeah, persisting happens before post-install. Installer script has the same issue - profile.ps1 gets renamed to profile.ps1.original and a folder called profile.ps1 gets persisted. |
@Ash258 I see. I thought
|
@BlackPowerade oops. my bad. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
PowerShell Core's global config is stored in a 'profile.ps1' file in $PSHome (%SCOOP%\apps\pwsh\current). Its not persisted.
The text was updated successfully, but these errors were encountered: