Changes in / [234b86a:7a352da8]
- Location:
- BOOK/system-config/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/system-config/common/locale.xml
r234b86a r7a352da8 14 14 </indexterm> 15 15 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> 19 20 20 21 <itemizedlist> … … 38 39 </listitem> 39 40 </itemizedlist> 40 41 <para>This script also sets the <envar>INPUTRC</envar> environment variable42 that makes Bash and Readline use the <filename>/etc/inputrc</filename> file43 created earlier.</para>44 41 45 42 <para>Replace <replaceable>[ll]</replaceable> below with the … … 112 109 might provide some useful information.</para> 113 110 114 <para>Once the proper locale settings have been determined, createthe111 <para>Once the proper locale settings have been determined, add them to the 115 112 <filename>/etc/profile</filename> file:</para> 116 113 117 <screen><userinput>cat > /etc/profile << "EOF" 118 <literal># Begin /etc/profile 114 <screen><userinput>cat >> /etc/profile << "EOF" 119 115 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> 122 117 123 118 # End /etc/profile</literal> -
BOOK/system-config/common/profile.xml
r234b86a r7a352da8 38 38 <para>The files <filename>/etc/profile</filename> and 39 39 <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 > /etc/profile << "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> 43 57 44 58 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.