Inherit user .bashrc file and identify FBE in prompt.

This commit is contained in:
Rafal Kupiec 2020-08-03 16:21:12 +02:00
parent 1cc7c79339
commit 4ab8beba6d
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 8 additions and 2 deletions

View File

@ -34,5 +34,11 @@ export PATH="${FBEDIR}/bin:${PATH}"
# Display banner
version
# Invoke shell
bash --rcfile <(echo 'cd ${SRCDIR}')
# Invoke shell with fancy prompt
export PFMAT1="\[\033[0;1;97;44m\]"
export PFMAT2="\[\033[0;34;104m\]"
export PFMAT3="\[\033[0;1;97;104m\]"
export PFMAT4="\[\033[0;94;49m\]"
export PFMAT5="\[\033[1;38;5;74m\]"
export PROMPT="\n${PFMAT1} FerretOS BE ${PFMAT2}${PFMAT3} \w ${PFMAT4}${PFMAT5} "
bash --rcfile <(echo 'export PS1="${PROMPT}" && source ~/.bashrc && cd ${SRCDIR}')