diff --git a/entrypoint-devpod.sh b/entrypoint-devpod.sh index e164ec3..6dba92e 100644 --- a/entrypoint-devpod.sh +++ b/entrypoint-devpod.sh @@ -14,13 +14,33 @@ fi # Bootstrap home dir on fresh PVC if [ ! -f /root/.bashrc ]; then - cp /etc/skel/.bashrc /root/.bashrc 2>/dev/null || cat > /root/.bashrc <<'EOF' + cp /etc/skel/.bashrc /root/.bashrc 2>/dev/null || true + cat >> /root/.bashrc <<'EOF' export PATH="/root/.bun/bin:$PATH" export HISTFILE=/root/.bash_history export HISTSIZE=10000 EOF fi +if [ ! -f /root/.profile ]; then + cat > /root/.profile <<'EOF' +export PATH="/root/.bun/bin:$PATH" +[ -f /root/.bashrc ] && . /root/.bashrc +EOF +fi + +if [ ! -f /root/.gitconfig ]; then + cat > /root/.gitconfig <<'EOF' +[user] + name = ryan + email = ryan@lunartech.com +[init] + defaultBranch = main +[core] + editor = code --wait +EOF +fi + # Start SSH daemon /usr/sbin/sshd