Skip to content
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

Write PowerShell profile customizations to $Profile.CurrentUserAllHosts #75

Closed
oifland opened this issue Jan 13, 2016 · 1 comment
Closed

Comments

@oifland
Copy link
Contributor

oifland commented Jan 13, 2016

There may be other issues, but the most glaring difference is that the cookbook only puts the profile in as the PowerShell profile, which is 1 of 6 profiles (and not the one used by ISE).

We need to review how profiles are selected, how they work with ISE, and make changes to support PowerShell ISE as a first-class option for installation.

@dougireton dougireton changed the title Bootstrap fails in PowerShell ISE Cookbook should write to PowerShell ISE profile as well as PowerShell profile Jan 23, 2016
@dougireton dougireton added this to the 1.6 milestone Feb 18, 2016
@dougireton
Copy link
Contributor

http://stackoverflow.com/questions/29122839/how-to-load-profile-in-powershell-ise

We want to write to $Profile.CurrentUserAllHosts per this article. Hosts in this article refers to the program hosting PowerShell, e.g. Console or ISE, not host in the computer sense.

@dougireton dougireton assigned dougireton and unassigned oifland May 4, 2016
@dougireton dougireton changed the title Cookbook should write to PowerShell ISE profile as well as PowerShell profile Write PowerShell profile customizations to $Profile.CurrentUserAllHosts May 7, 2016
dougireton pushed a commit that referenced this issue May 7, 2016

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
Fix #130
  Move PowerShell Profile customizations to a PowerShell module on the $env:PSModulePath

Fix #75
  Write PowerShell profile customizations to $Profile.CurrentUserAllHosts
dougireton pushed a commit that referenced this issue May 7, 2016

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
Fix #130: Move PowerShell Profile customizations to a PowerShell module on the $env:PSModulePath

Fix #75: Write PowerShell profile customizations to $Profile.CurrentUserAllHosts

* Upgrading from 1.7
This cookbook no longer writes C:\WINDOWS\System32\WindowsPowerShell\v1.0\profile.ps1.
If you are upgrading from 1.7 or earlier you will need to remove [the lines added by the chefdk_bootstrap in v1.7.0](https://github.com/Nordstrom/chefdk_bootstrap/blob/v1.7.0/templates/windows/global_profile.ps1.erb)
or delete the file.
dougireton pushed a commit that referenced this issue May 11, 2016

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
Fix #130: Move PowerShell Profile customizations to a PowerShell module on the $env:PSModulePath

Fix #75: Write PowerShell profile customizations to $Profile.CurrentUserAllHosts

* Upgrading from 1.7
This cookbook no longer writes C:\WINDOWS\System32\WindowsPowerShell\v1.0\profile.ps1.
If you are upgrading from 1.7 or earlier you will need to remove [the lines added by the chefdk_bootstrap in v1.7.0](https://github.com/Nordstrom/chefdk_bootstrap/blob/v1.7.0/templates/windows/global_profile.ps1.erb)
or delete the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants