반응형

 

KSH 용도 (Solaris)

 

 

 

콘솔(KSH)

https://linuxgazette.net/issue65/padala.html

 

So You Like Color !!! (The mysterious ^[[ characters) LG #65

#include #define RESET 0 #define BRIGHT 1 #define DIM 2 #define UNDERLINE 3 #define BLINK 4 #define REVERSE 7 #define HIDDEN 8 #define BLACK 0 #define RED 1 #define GREEN 2 #define YELLOW 3 #define BLUE 4 #define MAGENTA 5 #define CYAN 6 #define WHITE 7 #d

linuxgazette.net

 

 

 

^[ 부분은 CTRL+V 를 눌러서 입력함

 

 

배쉬쉘(BASH)

 

일반계정 : export PS1='\[\e[36;1m\]\u@\[\e[32;1m\]\h:\[\e[37;1m\][${PWD}]\[\e[0m\]$> '

root 계정 : export PS1='\[\e[31;1m\]\u@\[\e[31;1m\]\h:\[\e[32;1m\][${PWD}]\[\e[0m\]$> '

 

 

본쉘(sh)

 

cd()

{

    chdir $*;

    PS1="$LOGNAME@`hostname`:`pwd` $>"    

}

 

PS1="$LOGNAME@`hostname`:`pwd` $>"

반응형

+ Recent posts