Changes in / [7a352da8:234b86a]
- Location:
- BOOK/system-config/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/system-config/common/locale.xml
r7a352da8 r234b86a 14 14 </indexterm> 15 15 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> 20 19 21 20 <itemizedlist> … … 39 38 </listitem> 40 39 </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> 41 44 42 45 <para>Replace <replaceable>[ll]</replaceable> below with the … … 109 112 might provide some useful information.</para> 110 113 111 <para>Once the proper locale settings have been determined, add them tothe114 <para>Once the proper locale settings have been determined, create the 112 115 <filename>/etc/profile</filename> file:</para> 113 116 114 <screen><userinput>cat >> /etc/profile << "EOF" 117 <screen><userinput>cat > /etc/profile << "EOF" 118 <literal># Begin /etc/profile 115 119 116 <literal>export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable> 120 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable> 121 export INPUTRC=/etc/inputrc 117 122 118 123 # End /etc/profile</literal> -
BOOK/system-config/common/profile.xml
r7a352da8 r234b86a 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. 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> 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> 57 43 58 44 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.