Changeset 6f36554


Ignore:
Timestamp:
03/08/2017 02:05:30 AM (5 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, lazarus, perl-modules, qt5new, trunk, upgradedb, xry111/intltool, xry111/test-20220226
Children:
881bfdc
Parents:
ebbe967
Message:

Add ~/.profile to bash shell startup files.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18455 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    rebbe967 r6f36554  
    11<!-- $LastChangedBy$ $Date$ -->
    22
    3 <!ENTITY day          "07">                   <!-- Always 2 digits -->
     3<!ENTITY day          "08">                   <!-- Always 2 digits -->
    44<!ENTITY month        "03">                   <!-- Always 2 digits -->
    55<!ENTITY year         "2017">
     
    77<!ENTITY copyholder   "The BLFS Development Team">
    88<!ENTITY version      "&year;-&month;-&day;">
    9 <!ENTITY releasedate  "March 7th &year;">
     9<!ENTITY releasedate  "March 8th &year;">
    1010<!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
    1111<!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
  • introduction/welcome/changelog.xml

    rebbe967 r6f36554  
    4444
    4545    <listitem>
     46      <para>March 8th, 2017</para>
     47      <itemizedlist>
     48        <listitem>
     49          <para>[dj] - Add ~/.profile to bash shell startup files.</para>
     50        </listitem>
     51      </itemizedlist>
     52    </listitem>
     53
     54    <listitem>
    4655      <para>March 7th, 2017</para>
    4756      <itemizedlist>
  • postlfs/config/profile.xml

    rebbe967 r6f36554  
    2525
    2626  <para>An interactive login shell is started after a successful login, using
    27   <filename>/bin/login</filename>, by reading the <filename>/etc/passwd</filename>
    28   file.  This shell invocation normally reads <filename>/etc/profile</filename>
    29   and its private equivalent <filename>~/.bash_profile</filename> upon
    30   startup.</para>
     27  <filename>/bin/login</filename>, by reading the
     28  <filename>/etc/passwd</filename> file. This shell invocation normally reads
     29  <filename>/etc/profile</filename> and its private equivalent
     30  <filename>~/.bash_profile</filename> (or <filename>~/.profile</filename> if
     31  called as <command>/bin/sh</command>) upon startup.</para>
    3132
    3233  <para>An interactive non-login shell is normally started at the command-line
     
    3738  <command>konsole</command> from within a graphical environment. This type of
    3839  shell invocation normally copies the parent environment and then reads the
    39   user's <filename>~/.bashrc</filename> file for additional startup configuration
    40   instructions.</para>
     40  user's <filename>~/.bashrc</filename> file for additional startup
     41  configuration instructions.</para>
    4142
    4243  <para>A non-interactive shell is usually present when a shell script is
     
    431432  </sect2>
    432433
     434  <sect2 id="dot_profile-profile">
     435    <title>~/.profile</title>
     436
     437    <indexterm zone="postlfs-config-profile dot_profile-profile">
     438      <primary sortas="e-AA.dot_profile">~/.profile</primary>
     439    </indexterm>
     440
     441    <para>Here is a base <filename>~/.profile</filename>. The comments and
     442    instructions for using <filename class="directory">/etc/skel</filename> for
     443    <filename>.bash_profile</filename> above also apply here. Only the target
     444    file names are different.</para>
     445
     446<screen><userinput>cat &gt; ~/.profile &lt;&lt; "EOF"
     447<literal># Begin ~/.profile
     448# Personal environment variables and startup programs.
     449
     450if [ -d "$HOME/bin" ] ; then
     451  pathprepend $HOME/bin
     452fi
     453
     454# End ~/.profile</literal>
     455EOF</userinput></screen>
     456
     457  </sect2>
     458
    433459  <sect2 id="bashrc-profile">
    434460    <title>~/.bashrc</title>
     
    438464    </indexterm>
    439465
    440     <para>Here is a base <filename>~/.bashrc</filename>.  The comments and
    441     instructions for using <filename class="directory">/etc/skel</filename> for
    442     <filename>.bash_profile</filename> above also apply here. Only the target file
    443     names are different.</para>
     466    <para>Here is a base <filename>~/.bashrc</filename>.</para>
    444467
    445468<screen><userinput>cat &gt; ~/.bashrc &lt;&lt; "EOF"
     
    501524    </indexterm>
    502525
    503     <para> If you want to use the <filename>dircolors</filename> capability, then
    504     run the following command. The <filename class="directory">/etc/skel</filename>
    505     setup steps shown above also can be used here to provide a
    506     <filename>~/.dircolors</filename> file when a new user is set up. As before,
    507     just change the output file name on the following command and assure the
    508     permissions, owner, and group are correct on the files created and/or
    509     copied.</para>
     526    <para> If you want to use the <filename>dircolors</filename> capability,
     527    then run the following command. The
     528    <filename class="directory">/etc/skel</filename> setup steps shown above
     529    also can be used here to provide a <filename>~/.dircolors</filename> file
     530    when a new user is set up. As before, just change the output file name on
     531    the following command and assure the permissions, owner, and group are
     532    correct on the files created and/or copied.</para>
    510533
    511534<screen role="root"><userinput>dircolors -p > /etc/dircolors</userinput></screen>
    512535
    513     <para>If you wish to customize the colors used for different file types, you can
    514     edit the <filename>/etc/dircolors</filename> file.  The instructions for setting
    515     the colors are embedded in the file.</para>
     536    <para>If you wish to customize the colors used for different file types,
     537    you can edit the <filename>/etc/dircolors</filename> file. The instructions
     538    for setting the colors are embedded in the file.</para>
    516539
    517540
Note: See TracChangeset for help on using the changeset viewer.