Changeset 6f36554 for postlfs/config
- Timestamp:
- 03/08/2017 02:05:30 AM (7 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/profile.xml
rebbe9675 r6f36554 25 25 26 26 <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> 31 32 32 33 <para>An interactive non-login shell is normally started at the command-line … … 37 38 <command>konsole</command> from within a graphical environment. This type of 38 39 shell invocation normally copies the parent environment and then reads the 39 user's <filename>~/.bashrc</filename> file for additional startup configuration40 instructions.</para>40 user's <filename>~/.bashrc</filename> file for additional startup 41 configuration instructions.</para> 41 42 42 43 <para>A non-interactive shell is usually present when a shell script is … … 431 432 </sect2> 432 433 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 > ~/.profile << "EOF" 447 <literal># Begin ~/.profile 448 # Personal environment variables and startup programs. 449 450 if [ -d "$HOME/bin" ] ; then 451 pathprepend $HOME/bin 452 fi 453 454 # End ~/.profile</literal> 455 EOF</userinput></screen> 456 457 </sect2> 458 433 459 <sect2 id="bashrc-profile"> 434 460 <title>~/.bashrc</title> … … 438 464 </indexterm> 439 465 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> 444 467 445 468 <screen><userinput>cat > ~/.bashrc << "EOF" … … 501 524 </indexterm> 502 525 503 <para> If you want to use the <filename>dircolors</filename> capability, then504 run the following command. The <filename class="directory">/etc/skel</filename>505 setup steps shown above also can be used here to provide a506 <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 the508 permissions, owner, and group are correct on the files created and/or509 co pied.</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> 510 533 511 534 <screen role="root"><userinput>dircolors -p > /etc/dircolors</userinput></screen> 512 535 513 <para>If you wish to customize the colors used for different file types, you can514 edit the <filename>/etc/dircolors</filename> file. The instructions for setting515 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> 516 539 517 540
Note:
See TracChangeset
for help on using the changeset viewer.