Conversation
Collaborator
tmfdk333
commented
May 22, 2019
- DEV- 로 표시되는 부분에 color code가 중복되어 제거
- pwd 명령어 대신 escape sequence를 사용하여 home directory는 ~로 표시되도록 변경
occidere
requested changes
May 22, 2019
|
|
||
| BASHRC='/etc/bashrc' | ||
| echo 'export PS1="\[\e[1;34m\]DEV\[\e[m\]\[\e[1;34m\]-\[\e[m\][\h:\$(pwd)] " ' >> ${BASHRC} | ||
| echo 'export PS1="\[\e[1;34m\]DEV-\[\e[m\][\h:\w] " ' >> ${BASHRC} |
Owner
There was a problem hiding this comment.
PR 감사합니다!
우선 현재의 절대 경로를 알고 싶어서 ~ 표기 대신 절대경로를 표시하도록 하였습니다.
또한 DEV 와 그 뒤의 - 도 색상을 적용하고자 해서 \[\e[1;34m\]를 2번 사용했습니다.
다만 DEV 바로 뒤의 \[\e[\m\] 은 중복이 맞는 것 같습니다.
최종적으로 아래와 같이 바꿔주시면 좋을 것 같아요~
echo 'export PS1="\[\e[1;34m\]DEV\[\e[1;34m\]-\[\e[m\][\h:\$(pwd)] " ' >> ${BASHRC}감사합니다 👍
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.