Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion init_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo "alias dk='docker'" >> ${PROFILE}
source $PROFILE

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}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR 감사합니다!

우선 현재의 절대 경로를 알고 싶어서 ~ 표기 대신 절대경로를 표시하도록 하였습니다.
또한 DEV 와 그 뒤의 - 도 색상을 적용하고자 해서 \[\e[1;34m\]를 2번 사용했습니다.

다만 DEV 바로 뒤의 \[\e[\m\] 은 중복이 맞는 것 같습니다.

최종적으로 아래와 같이 바꿔주시면 좋을 것 같아요~

echo 'export PS1="\[\e[1;34m\]DEV\[\e[1;34m\]-\[\e[m\][\h:\$(pwd)] " ' >> ${BASHRC}

감사합니다 👍

source $BASHRC

VIMRC='/etc/vimrc'
Expand Down