linuxfromscratch

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
linuxfromscratch [2024/06/12 09:57] – [for, echo and sed] baecylinuxfromscratch [2024/06/16 23:14] (현재) – [PS1 설정] baecy
줄 173: 줄 173:
 PS1_USER='\[$(tput setaf 75)\][ \[$(tput sgr0)\]\w \[$(tput setaf 75)\]] \[$(tput sgr0)\]\$\n' PS1_USER='\[$(tput setaf 75)\][ \[$(tput sgr0)\]\w \[$(tput setaf 75)\]] \[$(tput sgr0)\]\$\n'
 PS1_HEAD='\[$(tput setaf 229)\]\u\[$(tput setaf 199)\]@\[$(tput setaf 215)\]\h ' PS1_HEAD='\[$(tput setaf 229)\]\u\[$(tput setaf 199)\]@\[$(tput setaf 215)\]\h '
-if [ "$(awk '$5=="/" {print $1}' </proc/1/mountinfo)" != "$(awk '$5=="/" {print $1}' </proc/$$/mountinfo)" ] ; th +if [ "$(awk '$5=="/" {print $1}' </proc/1/mountinfo)" != "$(awk '$5=="/" {print $1}' </proc/$$/mountinfo)" ] ; then
-en                                                                                                                +
     if [ $(id -u) -eq 0 ] ; then     if [ $(id -u) -eq 0 ] ; then
         PS1="<Chroot>${PS1_HEAD}${PS1_ROOT}"         PS1="<Chroot>${PS1_HEAD}${PS1_ROOT}"
     else     else
-        PS1="<Chroot>${PS1_HEAD}${PS1_USER}"                                                                      +        PS1="<Chroot>${PS1_HEAD}${PS1_USER}"
     fi     fi
 else else
     if [ $(id -u) -eq 0 ] ; then     if [ $(id -u) -eq 0 ] ; then
-        PS1="${PS1_HEAD}${PS1_ROOT}"                                                                              +        PS1="${PS1_HEAD}${PS1_ROOT}"
     else     else
         PS1="${PS1_HEAD}${PS1_USER}"         PS1="${PS1_HEAD}${PS1_USER}"
  • linuxfromscratch.1718186266.txt.gz
  • 마지막으로 수정됨: 2024/06/12 09:57
  • 저자 baecy