LoginSignup
16
12

More than 5 years have passed since last update.

文字化けしない tree コマンド を Git for Windows で使いたい

Last updated at Posted at 2017-10-23

Windows はコマンドプロンプト上では tree コマンドがありますが、Git Bash 上では tree がありません。
準備する手順です。

treeコマンドのセットアップ

tree for Windows からアーカイブをダウンロードしてください。

2017-10-23_15h02_41.png

zipファイルを解凍し、tree.exeC:\Program Files\Git\cmd\ にコピーします。

alias を設定する

Git Bash を起動します。

日本語ファイル名、フォルダ名を文字化けしないように alias を設定しておきます。

alias tree='tree -N'

.bashrc に書いておくのが良いでしょう。

参考

16
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
12