mac terminal 파일, 폴더 색상을 변경하는 법

ls를 해보면 아래와 같이 한가지 색상으로 통일 되어 있어서 작업을 위해서 구분이 필요할때가 있습니다.



.bash_profile을 열어서 수정합니다.

없으면 ( touch .bash_profile )


코드 추가

export CLICOLOR=1
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'


export LSCOLORS= Fx Fx Bx Dx Cx eg ed ab ag ac ad

  1   2   3   4   5   6    7   8   9 10 11

a black 
b red 
c green 
d brown 
e blue 
f magenta 
g cyan 
h light grey 
A bold black, usually shows up as dark grey 
B bold red 
C bold green 
D bold brown, usually shows up as yellow 
E bold blue 
F bold magenta 
G bold cyan 
H bold light grey; looks like bright white 
x default foreground or background 

1. directory 
2. symbolic link 
3. socket 
4. pipe 
5. executable 
6. block special 
7. character special 
8. executable with setuid bit set 
9. executable with setgid bit set 
10. directory writable to others, with sticky bit 
11. directory writable to others, without sticky 


vi 화면



그럼 아래와 같이 적용된 모습을 확인 할수 있습니다.



'Mac' 카테고리의 다른 글

mac 컬러 픽커 사용하기 (마우스 포인트의 컬러값)  (0) 2017.04.12
mac root 계정 설정하기  (0) 2017.04.12
mac terminal 테마 변경 하기  (0) 2017.04.11

+ Recent posts