solaris 使用别名设置语言环境
使用别名在终端窗口中更改语言环境,而不必每次都键入长命令行或编辑.dtlogin 文件并运行source。
如何设置Korn Shell 的语言环境别名
在.profile 文件中添加如下所示的别名。
alias chn "export LANG=zh; /bin/stty cs8 -istrip defeucw"
alias chn_GBK "export LANG=zh.GBK; /bin/stty cs8 -istrip \defeucw"
alias asc "export LANG=C; /bin/stty cs7 istrip defeucw"
alias chn "export LANG=zh; /bin/stty cs8 -istrip defeucw"
如何设置C Shell 的语言环境别名
在.cshrc 文件中添加如下所示的别名。
alias chn_EUC "setenv LANG zh; /bin/stty cs8 -istrip defeucw"
alias chn_GBK "setenv LANG zh.GBK; /bin/stty cs8 -istrip \defeucw"
alias asc "setenv LANG C; /bin/stty cs7 istrip defeucw"
alias chn_UTF-8 "setenv LANG=zh.UTF-8; /bin/stty cs8 -istrip defeucw"
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/35069/showart_453211.html
页:
[1]