5분만에 터미널의 'MacBook:~ Taro$'을 보기 쉽게 절정하는 방법
소개
표준 프롬프트Taro-no-MacBook:~ Taro$
는 보기 좋지 않네요.
그런 시원한 프롬프트는 바삭 바꾸어 버립니다.
BEFORE

AFTER

흠!!!
하는 방법♂
Step ①
Menlo for Powerline.ttf을 "Download"하고 글꼴을 설치합니다.

왜?: 「▶︎」의 형태를 한 특수한 기호 문자 사용하고 싶으니까.
Step ②
이 파일을 .git-prompt.sh
(점으로 시작하는) 파일 이름으로
홈 폴더에 저장합니다.

왜? : Git 브랜치 이름(ex. master)을 표시하는 데 필요합니다.
Step ③
홈 폴더에 있는 .bash_profile
에 다음을 붙여넣고 저장합니다.
~/.bash_profilesource ~/.git-prompt.sh
# 出力の後に改行を入れます
function add_line {
if [[ -z "${PS1_NEWLINE_LOGIN}" ]]; then
PS1_NEWLINE_LOGIN=true
else
printf '\n'
fi
}
PROMPT_COMMAND='add_line'
export PS1='\[\e[37;100m\] \# \[\e[90;47m\]\[\e[30;47m\] \W \[\e[37m\]$(__git_ps1 "\[\e[37;102m\] \[\e[30m\] %s \[\e[0;92m\]")\[\e[49m\]\[\e[m\] \$ '
이상입니다. 
새로운 터미널을 열어 보자.

어라? 
터미널 글꼴을 아직 변경하지 않았습니다.
Step ④
터미널 환경설정(⌘,)을 열고 글꼴에 Menlo for Powerline
를 지정합니다.

이것이 진정한 끝입니다.
터미널을 다시 시작해 봅시다.

흠뻑 흠!!!!

기타 터미널
iTerm 등 다른 터미널을 사용하는 경우도 제대로 반영되어 있습니다.
※ 각 터미널의 폰트를 Menlo for Powerline
로 하는 것을 잊지 말고.
iTerm2

Hyper Term

Atom ( platformio-ide-terminal )

아니, 좋아 
마지막으로
이것으로 5 분은 유석에 엄격했습니다 ... 죄송합니다 
아니, 그렇지만, 보기 쉬워져서 좋았다고 생각해 주시면 다행입니다. 
끝까지 사귀어 주셔서 감사합니다. m(_ _)m
구조가 신경이 쓰이는 분이나, 자신류에 커스터마이즈 하고 싶은 사람은 이쪽을 부탁합니다:
↓↓↓
htps : // 이 m / h mrj / ms / 60d2, 64c9, 5bf7c0, 60
Reference
이 문제에 관하여(5분만에 터미널의 'MacBook:~ Taro$'을 보기 쉽게 절정하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/hmmrjn/items/15d0fe15e5d03586ad46
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Step ①
Menlo for Powerline.ttf을 "Download"하고 글꼴을 설치합니다.

왜?: 「▶︎」의 형태를 한 특수한 기호 문자 사용하고 싶으니까.
Step ②
이 파일을
.git-prompt.sh
(점으로 시작하는) 파일 이름으로 

왜? : Git 브랜치 이름(ex. master)을 표시하는 데 필요합니다.
Step ③

.bash_profile
에 다음을 붙여넣고 저장합니다.~/.bash_profile
source ~/.git-prompt.sh
# 出力の後に改行を入れます
function add_line {
if [[ -z "${PS1_NEWLINE_LOGIN}" ]]; then
PS1_NEWLINE_LOGIN=true
else
printf '\n'
fi
}
PROMPT_COMMAND='add_line'
export PS1='\[\e[37;100m\] \# \[\e[90;47m\]\[\e[30;47m\] \W \[\e[37m\]$(__git_ps1 "\[\e[37;102m\] \[\e[30m\] %s \[\e[0;92m\]")\[\e[49m\]\[\e[m\] \$ '
이상입니다.

새로운 터미널을 열어 보자.

어라?

터미널 글꼴을 아직 변경하지 않았습니다.
Step ④
터미널 환경설정(⌘,)을 열고 글꼴에
Menlo for Powerline
를 지정합니다.
이것이 진정한 끝입니다.
터미널을 다시 시작해 봅시다.

흠뻑 흠!!!!



기타 터미널
iTerm 등 다른 터미널을 사용하는 경우도 제대로 반영되어 있습니다.
※ 각 터미널의 폰트를 Menlo for Powerline
로 하는 것을 잊지 말고.
iTerm2

Hyper Term

Atom ( platformio-ide-terminal )

아니, 좋아 
마지막으로
이것으로 5 분은 유석에 엄격했습니다 ... 죄송합니다 
아니, 그렇지만, 보기 쉬워져서 좋았다고 생각해 주시면 다행입니다. 
끝까지 사귀어 주셔서 감사합니다. m(_ _)m
구조가 신경이 쓰이는 분이나, 자신류에 커스터마이즈 하고 싶은 사람은 이쪽을 부탁합니다:
↓↓↓
htps : // 이 m / h mrj / ms / 60d2, 64c9, 5bf7c0, 60
Reference
이 문제에 관하여(5분만에 터미널의 'MacBook:~ Taro$'을 보기 쉽게 절정하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/hmmrjn/items/15d0fe15e5d03586ad46
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
이것으로 5 분은 유석에 엄격했습니다 ... 죄송합니다

아니, 그렇지만, 보기 쉬워져서 좋았다고 생각해 주시면 다행입니다.

끝까지 사귀어 주셔서 감사합니다. m(_ _)m
구조가 신경이 쓰이는 분이나, 자신류에 커스터마이즈 하고 싶은 사람은 이쪽을 부탁합니다:
↓↓↓
htps : // 이 m / h mrj / ms / 60d2, 64c9, 5bf7c0, 60
Reference
이 문제에 관하여(5분만에 터미널의 'MacBook:~ Taro$'을 보기 쉽게 절정하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/hmmrjn/items/15d0fe15e5d03586ad46텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)