Changeset 6f36554 for postlfs/config


Ignore:
Timestamp:
03/08/2017 02:05:30 AM (7 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
881bfdc
Parents:
ebbe9675
Message:

Add ~/.profile to bash shell startup files.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/profile.xml

    rebbe9675 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.