Skip to content

Instantly share code, notes, and snippets.

@fanyang89
Created November 19, 2019 05:59
Show Gist options
  • Save fanyang89/b156d419e08c43b13ba1f2ec44255ad3 to your computer and use it in GitHub Desktop.
Save fanyang89/b156d419e08c43b13ba1f2ec44255ad3 to your computer and use it in GitHub Desktop.
PowerShell Core Profile
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
Import-Module PSColor
Import-Module posh-ssh
if ($host.Name -eq 'ConsoleHost') {
Import-Module PSReadLine
}
function prompt {
$path = Get-Location
Write-Host "# " -NoNewline -ForegroundColor Blue
Write-Host $env:USERNAME -NoNewline -ForegroundColor Cyan
Write-Host " in " -NoNewline
Write-Host $path -NoNewline -ForegroundColor Green
Write-Host
Write-Host "$" -NoNewline -ForegroundColor Magenta
return " "
}
# $env:HTTP_PROXY = "socks5://127.0.0.1:7891"
# $env:HTTPS_PROXY = "socks5://127.0.0.1:7891"
$env:GO111MODULE = "on"
$env:GOPROXY = "https://goproxy.io"
$env:GOPATH = "D:\Workspace\go"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment