Last active
December 23, 2015 21:49
-
-
Save cd01/6698998 to your computer and use it in GitHub Desktop.
jvgrep インストール時のメモ
This file contains 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
# もしまだ Go言語 をインストールしていなかったら、 cinst golang するか、インストーラをダウンロードしてきて実行 | |
# Go 言語関連の設定 | |
$oldPath = (Get-ItemProperty "HKCU:Environment" "PATH").PATH | |
if ($oldPath[-1] -ne ";") { $oldPath += ";" } | |
Set-ItemProperty "HKCU:Environment" "PATH" -value "$($oldPath)$($Env:USERPROFILE)\_go\bin" | |
setx GOROOT "C:\go" | |
setx GOPATH (Join-Path $Env:USERPROFILE "_go") | |
# 環境変数を反映させるために再起動 | |
Restart-Computer | |
# プロキシの設定が必要なら、 setx HTTP_PROXY "プロキシ" と setx HTTPS_PROXY "プロキシ" もしておく | |
# 再起動後に go get github.com/mattn/jvgrep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO: Workflow とかいうの使ったら、再起動後にもコマンド実行できた気がする