Created
May 17, 2012 17:35
-
-
Save arairait/2720431 to your computer and use it in GitHub Desktop.
msysgitで日本語を扱う。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* git のエディタを指定する | |
> git config --global core.editor '/c/xyzzy/xyzzycli.exe' | |
* git status、git diffで日本語ファイル名が表示されるようにする | |
> git config --global core.quotepath false | |
* $HOME/.bashrc に以下を追加 | |
> alias ls='ls --color=auto --show-control-chars' | |
**** 1.7.10 より、以下はすべて不要になった。**** | |
* UTF-8 対応版 less.exe を上書き | |
> C:\Program Files\git\bin\less.exeをWindows版less UTF-8対応版バイナリー配布のものと置き換える | |
> http://nonn-et-twk.net/twk/windows-less-utf8 | |
* Windows 版 nkf.exeを置く | |
* git の pager を変更 | |
> git config --global core.pager 'nkf -w | LESSCHARSET=utf-8 less' | |
* inputrc で以下の設定をする | |
> set meta-flag on | |
> set input-meta on | |
> set output-meta off | |
> set convert-meta off | |
> set kanji-code utf-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment