]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add a note about loading profile files
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 8 Apr 2018 16:52:16 +0000 (17:52 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 9 Apr 2018 19:41:38 +0000 (19:41 +0000)
If one is somewhat new to the command line or shell, it might be
surprising that changes applied to a file like $HOME/.profile will
seemingly not take effect, even if new shells are started.

Add a note about how shells usually only load these when the user logs
into a machine, to minimize the amount of people stuck and confused by
this.

Fixes #24756.

Change-Id: Ic68d8c97933f3f080b151a107633ecad76a163a4
Reviewed-on: https://go-review.googlesource.com/105557
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
doc/install.html

index f17dce5bdd4c82e800e82abc21bd9e5ea045740d..79ae9664c89af6ce75b42a37d12490838ec0401b 100644 (file)
@@ -106,6 +106,12 @@ variable. You can do this by adding this line to your <code>/etc/profile</code>
 export PATH=$PATH:/usr/local/go/bin
 </pre>
 
+<p>
+<b>Note</b>: changes made to a <code>profile</code> file may not apply until the
+next time you log into your computer. Alternatively, you can apply them to the
+current shell with a command like <code>source $HOME/.profile</code>.
+</p>
+
 <h4 id="tarball_non_standard">Installing to a custom location</h4>
 
 <p>