Skip to content

Instantly share code, notes, and snippets.

@pa4373
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pa4373/8859217 to your computer and use it in GitHub Desktop.
Save pa4373/8859217 to your computer and use it in GitHub Desktop.
Fix chinese characters and input problem under Git Bash (MINGW32)
# Usage: $ curl -L [GIST_RAW_URL] | sh
echo "alias ls='/bin/ls --show-control-chars -F --color=tty'" >> /etc/profile
sed -i -e "s/PS1=\"\$PS1\"'\\\n'/#PS1=\"\$PS\"'\\\n'/g" /etc/profile
echo "set meta-flag on\nset input-meta on\nset output-meta on\nset convert-meta off" >> /etc/inputrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment