cygwin中文乱码

1986阅读 0评论2010-11-06 kevin33643
分类:WINDOWS

.bash_profile
# 让ls和dir命令显示中文和颜色 
alias ls =' ls --show-control-chars --color '
alias dir =' dir -N --color '
# 设置为中文环境,使提示成为中文 
export  LANG =" zh_CN.GBK "
# 输出为中文编码 
export  OUTPUT_CHARSET =" GBK "

.inputrc 
# 关闭bash命令行8字节字符转义符的转换 
set  convert-meta  off
# 使bash命令行支持8字节字符输入 
set  input-meta  on
# 使bash命令行支持8字节字符输出 
set  output-meta  on
set  meta-flag  on
set  completion-ignore-case  on

上一篇:Ubuntu上改变sudo默认timeout时间
下一篇:virtualbox installation error