linux

[Ubuntu] ShellPrompt 변경

afewgood 2019. 6. 7. 15:40

1. Prompt 확인
]$ echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}[\u@\h \W]$

 

2. Prompt 변경
]$ vi ~/.bashrc

 

59 if [ "$color_prompt" = yes ]; then
60 PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]: \[\033[01;34m\]\w\[\033[00m\]\$ '
61 else
62 PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '을(를) PS1='${debian_chroot:+($debian_chroot)}[\u@\h \W]$ '(으)로 변경
64 fi
65 unset color_prompt force_color_prompt