-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path99_general.ps1
26 lines (18 loc) · 1.07 KB
/
99_general.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Show menu on {Tab} ASAP
#Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# Attach spawned intances to conemu
if (Test-Path $Env:ProgramFiles\ConEmu\ConEmu\ConEmuC.exe) { & $Env:ProgramFiles\ConEmu\ConEmu\ConEmuC.exe /AUTOATTACH }
# Remove PSCX less helper, I already use my own less
# if (gmo -List pscx) { ($Pscx:Preferences).PageHelpUsingLess = $false }
# Do not use any proxy server for posh remoting
$PSSessionOption = New-PSSessionOption -ProxyAccessType NoProxyServer
# Use UTF8
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
# Delete some aliases for which I use original tools
'wget', 'curl' | % { rm Alias:\$_ -ea 0 }
# Force AU update shortcut
function fup() { $global:au_force = $true; ./update.ps1}
sal pester Invoke-Pester
sal ib Invoke-Build
if (Test-Path $env:ChocolateyInstall\lib\invoke-build) { & "$env:ChocolateyInstall\lib\invoke-build\tools\Invoke-Build.ArgumentCompleters.ps1" }
#[System.Net.ServicePointManager]::SecurityProtocol = 3072 -bor 768 -bor [System.Net.SecurityProtocolType]::Tls -bor [System.Net.SecurityProtocolType]::Ssl3