10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-09-27 12:00:56 +02:00
quantum_package/bin/qpsh

25 lines
407 B
Plaintext
Raw Normal View History

2019-01-09 02:44:30 +01:00
#!/bin/bash
2019-01-12 02:41:16 +01:00
export QP_ROOT=$(dirname $0)/..
2019-01-09 02:44:30 +01:00
exec bash --init-file <(cat << EOF
2019-01-11 19:10:12 +01:00
[[ -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
2019-01-09 02:44:30 +01:00
EOF
)