Getting help for a command, e.g. Get-ChildItem:
Get-Help Get-ChildItemUsing behind corporate proxy - suggest putting in your profile script (see below):
[System.Net.WebRequest]::DefaultWebProxy = New-Object System.Net.WebProxy('<address>:<port>')Getting help for a command, e.g. Get-ChildItem:
Get-Help Get-ChildItemUsing behind corporate proxy - suggest putting in your profile script (see below):
[System.Net.WebRequest]::DefaultWebProxy = New-Object System.Net.WebProxy('<address>:<port>')New-Item $Profile -Type File -ForceTest-Path <file>iex $ProfileShortcuts that I find useful (WIP):
Ctrl+P: Find a fileAlt+Z: Toggle word wrap| __has_parent_dir () { | |
| # Utility function so we can test for things like .git/.hg without firing up a | |
| # separate process | |
| test -d "$1" && return 0; | |
| current="." | |
| while [ ! "$current" -ef "$current/.." ]; do | |
| if [ -d "$current/$1" ]; then | |
| return 0; | |
| fi |