docker-images/pluie/alpine/install.d/10-ps1.sh

13 lines
297 B
Bash
Raw Normal View History

2016-07-25 02:35:21 +00:00
#!/bin/bash
# pluie/docker-images - a-Sansara (https://github.com/a-sansara)
2016-07-25 02:54:40 +00:00
2016-07-25 02:35:21 +00:00
if [ ! -f /root/.bash_ps1 ]; then
cat <<EOF >> /root/.bashrc
if [ -f ~/.bash_ps1 ]; then
. ~/.bash_ps1
fi
EOF
sed -n '1,22 p' /scripts/util.sh > /root/.bash_ps1
echo "bash_prompt" >> /root/.bash_ps1
fi