]> git.pld-linux.org Git - projects/rc-scripts.git/blob - lang.csh
8dd92a54af5c1d8a085b03b7e9ae544687c3d4b2
[projects/rc-scripts.git] / lang.csh
1 #!/bin/csh
2 #
3 #       $Id: lang.csh,v 1.3 1999/12/15 18:41:05 misiek Exp $
4 #
5
6 test -f /etc/sysconfig/i18n
7 if ($status == 0) then
8
9     if ($?LANG) then
10         setenv LANG
11     endif
12
13     if ($?LC_ALL) then
14         setenv LC_ALL
15     endif
16   
17     if ($?LINGUAS) then
18         setenv LINGUAS
19     endif
20   
21     if ($?SYSTERM) then
22         setenv TERM=$SYSTERM
23     endif
24
25 #    # Set console font map.
26 #    if ($?UNIMAP) then
27 #       loadunimap $UNIMAP
28 #    endif
29
30     if ($?SYSFONTACM) then
31         switch ($SYSFONTACM)
32             case iso01*|iso02*|iso15*|koi*|latin2-ucw*:
33                 if ( "$TERM" == "linux" ) then
34                     if ( ls -l /proc/$$/fd/0 2>/dev/null | grep -- '-> /dev/tty[0-9]*$' >/dev/null 2>&1)  then
35                         echo -n -e '\033(K' > /proc/$$/fd/0
36                     endif
37                 endif
38                 breaksw
39         endsw
40     endif
41
42     if ($?SYSTERM) then
43         switch ($SYSTERM)
44         case linux-lat:
45                 setenv LESSCHARSET=latin1
46                 setenv INPUTRC=/etc/inputrc
47                 breaksw
48         endsw
49     endif
50 endif
This page took 0.022422 seconds and 3 git commands to generate.