Changes in / [7a352da8:234b86a]


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

Legend:

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

    r7a352da8 r234b86a  
    1414  </indexterm>
    1515
    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>
     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>
    2019
    2120  <itemizedlist>
     
    3938    </listitem>
    4039  </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>
    4144
    4245  <para>Replace <replaceable>[ll]</replaceable> below with the
     
    109112  might provide some useful information.</para>
    110113
    111   <para>Once the proper locale settings have been determined, add them to the
     114  <para>Once the proper locale settings have been determined, create the
    112115  <filename>/etc/profile</filename> file:</para>
    113116
    114 <screen><userinput>cat &gt;&gt; /etc/profile &lt;&lt; "EOF"
     117<screen><userinput>cat &gt; /etc/profile &lt;&lt; "EOF"
     118<literal># Begin /etc/profile
    115119
    116 <literal>export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable>
     120export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable>
     121export INPUTRC=/etc/inputrc
    117122
    118123# End /etc/profile</literal>
  • BOOK/system-config/common/profile.xml

    r7a352da8 r234b86a  
    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. 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 
    49 for f in /etc/bash_completion.d/*
    50 do
    51   if [ -e ${f} ]; then source ${f}; fi
    52 done
    53 unset f
    54 
    55 export INPUTRC=/etc/inputrc</literal>
    56 EOF</userinput></screen>
     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>
    5743
    5844</sect1>
Note: See TracChangeset for help on using the changeset viewer.