all : fix not printable color sequence in terminal
This commit is contained in:
parent
8efe12893d
commit
fc8be7c6f4
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -8,17 +8,17 @@ function bash_prompt() {
|
||||||
elif [ "$SHENV_CTX" = "PROD" ]; then
|
elif [ "$SHENV_CTX" = "PROD" ]; then
|
||||||
local Cenv="160"
|
local Cenv="160"
|
||||||
fi
|
fi
|
||||||
local Cdate="\033[1;33m"
|
local Cdate="\[\033[1;33m\]"
|
||||||
local Cctx="\033[1;48;5;243m"
|
local Cctx="\[\033[1;48;5;243m\]"
|
||||||
local Cname="\033[1;48;5;${SHENV_COLOR}m"
|
local Cname="\[\033[1;48;5;${SHENV_COLOR}m\]"
|
||||||
local Cpath="\033[1;38;5;36m"
|
local Cpath="\[\033[1;38;5;36m\]"
|
||||||
local Cwhite="\033[1;38;5;15m"
|
local Cwhite="\[\033[1;38;5;15m\]"
|
||||||
local Chost="\033[1;38;5;15m"
|
local Chost="\[\033[1;38;5;15m\]"
|
||||||
local Csymbol="\033[1;38;5;15m"
|
local Csymbol="\[\033[1;38;5;15m\]"
|
||||||
local Cuser="\033[1;38;5;203m"
|
local Cuser="\[\033[1;38;5;203m\]"
|
||||||
local Coff="\033[m"
|
local Coff="\[\033[m\]"
|
||||||
|
|
||||||
export PS1="\[${Cdate}\]\t \[${Cwhite}${Cctx}\] DOCKER ${SHENV_CTX} \[${Cname}\] ${SHENV_NAME} \[${Coff} ${Cuser}\]\u\[${Chost}\]@\h \[${Cpath}\]\w \[${Csymbol}\]\$ \[${Coff}\]"
|
export PS1="${Cdate}\t ${Cwhite}${Cctx} DOCKER ${SHENV_CTX} ${Cname} ${SHENV_NAME} ${Coff} ${Cuser}\u${Chost}@\h ${Cpath}\w ${Csymbol}\$ ${Coff}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function preInit(){
|
function preInit(){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user