카테고리 없음

tree 만들기

Or71nH 2023. 9. 22. 14:49

 

http://mama.indstate.edu/users/ice/tree/

 

The Tree Command for Linux Homepage

The Tree Command for Linux Homepage Description: Tree is a recursive directory listing command that produces a depth indented listing of files, which is colorized ala dircolors if the LS_COLORS environment variable is set and output is to tty. Tree has bee

mama.indstate.edu

 

에서 다운을 해준다 

파일로 들어가 make 파일에 설치하는 tree 실행 

make 실행하자

kyoulee@baseui-MacBookAir tree-2.1.1 % make

 

잘만들어진다

kyoulee@baseui-MacBookAir tree-2.1.1 % ./tree ./
./
├── CHANGES
├── INSTALL
├── LICENSE
├── Makefile
├── README
├── TODO
├── color.c
├── color.o
├── doc
│   ├── global_info
│   ├── tree.1
│   └── xml.dtd
├── file.c
├── file.o
├── filter.c
├── filter.o
├── hash.c
├── hash.o
├── html.c
├── html.o
├── info.c
├── info.o
├── json.c
├── json.o
├── list.c
├── list.o
├── strverscmp.c
├── strverscmp.o
├── tree
├── tree.c
├── tree.h
├── tree.o
├── unix.c
├── unix.o
├── xml.c
└── xml.o

이제 zshrc에 적용하자

kyoulee@baseui-MacBookAir .tree % pwd
/Users/kyoulee/.tree
kyoulee@baseui-MacBookAir .tree % tree ./
./
└── tree

1 directory, 1 file

이렇게 만들어 주고 

~/.zshrc 파일을 수정해 준다

alias tree="~/.tree/tree"

완성 이제 잘된다~