Skip to content

Instantly share code, notes, and snippets.

@cd01
Last active December 23, 2015 21:49
Show Gist options
  • Save cd01/6698998 to your computer and use it in GitHub Desktop.
Save cd01/6698998 to your computer and use it in GitHub Desktop.
jvgrep インストール時のメモ
# もしまだ 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
@cd01
Copy link
Author

cd01 commented Sep 25, 2013

TODO: Workflow とかいうの使ったら、再起動後にもコマンド実行できた気がする

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment