Changes in / [234b86a:7a352da8]


Ignore:
Location:
BOOK/system-config/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/system-config/common/locale.xml

    r234b86a r7a352da8  
    1414  </indexterm>
    1515
    16   <para>The base <filename>/etc/profile</filename> below sets some
    17   environment variables necessary for native language support. Setting
    18   them properly results in:</para>
     16  <para>The instructions below explain how to add some environment variables
     17  necessary for native language support to the base
     18  <filename>/etc/profile</filename> created in the previous section. Setting
     19  these variables properly results in:</para>
    1920
    2021  <itemizedlist>
     
    3839    </listitem>
    3940  </itemizedlist>
    40 
    41   <para>This script also sets the <envar>INPUTRC</envar> environment variable
    42   that makes Bash and Readline use the <filename>/etc/inputrc</filename> file
    43   created earlier.</para>
    4441
    4542  <para>Replace <replaceable>[ll]</replaceable> below with the
     
    112109  might provide some useful information.</para>
    113110
    114   <para>Once the proper locale settings have been determined, create the
     111  <para>Once the proper locale settings have been determined, add them to the
    115112  <filename>/etc/profile</filename> file:</para>
    116113
    117 <screen><userinput>cat &gt; /etc/profile &lt;&lt; "EOF"
    118 <literal># Begin /etc/profile
     114<screen><userinput>cat &gt;&gt; /etc/profile &lt;&lt; "EOF"
    119115
    120 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable>
    121 export INPUTRC=/etc/inputrc
     116<literal>export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable>
    122117
    123118# End /etc/profile</literal>
  • BOOK/system-config/common/profile.xml

    r234b86a r7a352da8  
    3838  <para>The files <filename>/etc/profile</filename> and
    3939  <filename>~/.bash_profile</filename> are read when the shell is
    40   invoked as an interactive login shell. In the next section, a base
    41   <filename>/etc/profile</filename> will be created to set up locale
    42   information.</para>
     40  invoked as an interactive login shell. Create a base
     41  <filename>/etc/profile</filename> that will load any Bash auto completion
     42  files that may be on the system, and set the <envar>INPUTRC</envar>
     43  environment variable that makes Bash and Readline use
     44  <filename>/etc/inputrc</filename>:</para>
     45
     46<screen><userinput>cat &gt; /etc/profile &lt;&lt; "EOF"
     47<literal># Begin /etc/profile
     48
     49for f in /etc/bash_completion.d/*
     50do
     51  if [ -e ${f} ]; then source ${f}; fi
     52done
     53unset f
     54
     55export INPUTRC=/etc/inputrc</literal>
     56EOF</userinput></screen>
    4357
    4458</sect1>
Note: See TracChangeset for help on using the changeset viewer.