Created
November 19, 2019 05:59
-
-
Save fanyang89/b156d419e08c43b13ba1f2ec44255ad3 to your computer and use it in GitHub Desktop.
PowerShell Core Profile
This file contains hidden or 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
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