歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux安裝 >> cygwin從linux下同步文件,中文文件名亂碼

cygwin從linux下同步文件,中文文件名亂碼

日期:2017/2/25 14:40:17   编辑:Linux安裝

~/.bash_profile

追加文字配置:


  1. # 讓ls和dir命令顯示中文和顏色
  2. #alias ls =' ls --show-control-chars --color '
  3. #alias dir =' dir -N --color '
  4. # 設置為中文環境,使提示成為中文
  5. export LANG ="zh_CN.GBK"
  6. # 輸出為中文編碼
  7. export OUTPUT_CHARSET ="GBK"

~/.inputrc

追加文字配置

  1. # 關閉bash命令行8字節字符轉義符的轉換
  2. set convert-meta off
  3. # 使bash命令行支持8字節字符輸入
  4. set input-meta on
  5. # 使bash命令行支持8字節字符輸出
  6. set output-meta on
  7. set meta-flag on
  8. set completion-ignore-case on


Copyright © Linux教程網 All Rights Reserved