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

Comments

Projects
None yet
2 participants
@oifland
Member

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 added the windows label Jan 23, 2016

@dougireton dougireton changed the title from Bootstrap fails in PowerShell ISE to 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

This comment has been minimized.

Show comment
Hide comment
@dougireton

dougireton Feb 26, 2016

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.

Contributor

dougireton commented Feb 26, 2016

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 from Cookbook should write to PowerShell ISE profile as well as PowerShell profile to Write PowerShell profile customizations to $Profile.CurrentUserAllHosts May 7, 2016

dougireton added a commit that referenced this issue May 7, 2016

Release 1.8.0
Fix #130
  Move PowerShell Profile customizations to a PowerShell module on the $env:PSModulePath

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

@dougireton dougireton referenced this issue May 7, 2016

Merged

Release 1.8.0 #131

dougireton added a commit that referenced this issue May 7, 2016

Release 1.8.0
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 added a commit that referenced this issue May 11, 2016

Release 1.8.0
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.

@oifland oifland closed this in #131 May 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment