-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #130 Move PowerShell Profile customizations to a PowerShell module on the $env:PSModulePath Fix #75 Write PowerShell profile customizations to $Profile.CurrentUserAllHosts
- Loading branch information
Doug Ireton
committed
May 7, 2016
1 parent
6c8fda3
commit 887114f
Showing
17 changed files
with
183 additions
and
129 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<% if node['chefdk_bootstrap']['proxy']['http'] -%> | ||
<# | ||
.Synopsis | ||
Sets proxy environment variables used by ChefDK command-line tools, e.g. | ||
curl, chef-client, Berkshelf, etc. | ||
|
||
.Description | ||
Sets proxy environment variables used by ChefDK command-line tools, e.g. | ||
curl, chef-client, Berkshelf, etc. | ||
|
||
#> | ||
function Set-Proxy { | ||
$env:http_proxy = '<%= node['chefdk_bootstrap']['proxy']['http'] %>' | ||
$env:https_proxy = $env:http_proxy | ||
|
||
<% if node['chefdk_bootstrap']['proxy']['no_proxy'] -%> | ||
$env:no_proxy = '<%= node['chefdk_bootstrap']['proxy']['no_proxy'] %>' | ||
<% end -%> | ||
} | ||
|
||
function Remove-Proxy { | ||
Remove-Item Env:\http_proxy | ||
Remove-Item Env:\https_proxy | ||
Remove-Item Env:\no_proxy | ||
} | ||
<% end -%> | ||
|
||
function Set-PSColors { | ||
# Powershell Color settings | ||
# Set the default PS console foreground color to White so that | ||
# colored messages from RSpec, Test Kitchen and friends | ||
# show up "bright" for readability. | ||
# | ||
# Default PS console (i.e. blue background, white text) colors are really | ||
# DarkYellow and DarkMagenta for some reason. | ||
$using_default_colors = ($Host.UI.RawUI.ForegroundColor -eq 'DarkYellow' -and | ||
$Host.UI.RawUI.BackgroundColor -eq 'DarkMagenta') | ||
|
||
# Only change the colors if they have been left in a default state | ||
if ($using_default_colors) { | ||
$Host.UI.RawUI.ForegroundColor = 'White' | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
Oops, something went wrong.