Little fix to Getting Started page on golang.org

xuanbao · · 339 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>There is a paragraph <em>Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile:</em> under &#34;Install the Go tools&#34; header. It would be nice to append <em>&#34;... or $HOME/.bashrc&#34;</em> there. I didn&#39;t find the right place for this little issue on github , sorry.</p> <hr/>**评论:**<br/><br/>dgryski: <pre><p>You can file bugs at <a href="https://github.com/golang/go/issues">https://github.com/golang/go/issues</a></p></pre>DigitalCthulhu: <pre><p>I was not sure that&#39;s the right place. Done. Thank you. </p></pre>dgryski: <pre><p>Most bugs are filed there. Only a few of the projects have their own tracker.</p></pre>pdffs: <pre><p><code>~/.bashrc</code> is bash-specific, whereas <code>/etc/profile</code> and <code>~/.profile</code> are shell-agnostic. The current recommendations are correct and complete I think.</p></pre>DigitalCthulhu: <pre><p>i&#39;ve found solution here: <a href="https://wiki.debian.org/EnvironmentVariables" rel="nofollow">https://wiki.debian.org/EnvironmentVariables</a> <em>&#34;Graphical logins do not read a shell&#39;s startup files (/etc/profile and ~/.profile and so on) by default, but you as a user may choose to create a ~/.xsessionrc file which does this.&#34;</em> so i created ~/.xsessionrc and added </p> <pre><code>if [ -f ~/.profile ]; then . ~/.profile fi </code></pre> <p>and it works after logout and login again.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

339 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传