红联Linux门户
Linux帮助

solaris使用别名设置语言环境

发布时间:2008-01-04 00:01:26来源:红联作者:Interlude
使用别名在终端窗口中更改语言环境,而不必每次都键入长命令行或编辑
.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"
文章评论

共有 0 条评论