mirror of
https://github.com/LCPQ/quantum_package
synced 2024-09-27 12:00:56 +02:00
25 lines
407 B
Bash
Executable File
25 lines
407 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export QP_ROOT=$(dirname $0)/..
|
|
|
|
exec bash --init-file <(cat << EOF
|
|
|
|
[[ -f \${HOME}/.bashrc ]] && source \${HOME}/.bashrc
|
|
|
|
ESC=\$(printf "\\e")
|
|
|
|
function check_ezfio() {
|
|
if [[ -d \${EZFIO_FILE} ]] ; then
|
|
printf "\\e[0;32m|\${EZFIO_FILE}>\\e[m"
|
|
else
|
|
printf "\\e[0;31m|\${EZFIO_FILE}>\\e[m"
|
|
fi
|
|
}
|
|
|
|
PS1="\${PS1%$ }\\\$(check_ezfio) \$ "
|
|
source \${QP_ROOT}/quantum_package.rc
|
|
EOF
|
|
)
|
|
|
|
|