Shortcuts 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 |
Shortcuts that I find useful (WIP):
Ctrl+P
: Find a fileAlt+Z
: Toggle word wrapNew-Item $Profile -Type File -Force
Test-Path <file>
iex $Profile
Getting help for a command, e.g. Get-ChildItem
:
Get-Help Get-ChildItem
Using behind corporate proxy - suggest putting in your profile script (see below):
[System.Net.WebRequest]::DefaultWebProxy = New-Object System.Net.WebProxy('<address>:<port>')