사용자 도구

사이트 도구


linux:bash:colorprompt

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:bash:colorprompt [2014/11/02 11:13]
kwon37xi
linux:bash:colorprompt [2017/02/20 13:13] (현재)
kwon37xi
줄 5: 줄 5:
   * https://wiki.archlinux.org/index.php/Color_Bash_Prompt   * https://wiki.archlinux.org/index.php/Color_Bash_Prompt
   * [[http://www.geekgumbo.com/2011/09/25/changing-your-shell-prompt/|Changing Your Shell Prompt]]   * [[http://www.geekgumbo.com/2011/09/25/changing-your-shell-prompt/|Changing Your Shell Prompt]]
 +
 +===== PS1, PS2 =====
 +  * ''PS1''은 프롬프트 앞부분
 +  * ''PS2''는 멀티 명령행에서 두 번째 명령부터 나오는 프롬프트
 +  * [[http://knight76.tistory.com/3072|김용환 블로그(2004-2017) :: 프롬프팅(prompting) PS1, PS2]]
  
 ===== 녹색 프롬프트 ===== ===== 녹색 프롬프트 =====
줄 25: 줄 30:
 #일반 사용자용 #일반 사용자용
 PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] ' PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] '
 +
 +# or 다른데 접속시 티나게
 +PS1='\[\e[1;32m\][◈  \u@\h \W]\$\[\e[0m\] '
 </code> </code>
  
linux/bash/colorprompt.1414894381.txt.gz · 마지막으로 수정됨: 2014/11/02 11:13 저자 kwon37xi