2026-02-21 13:17:51 +01:00
|
|
|
#!/bin/bash
|
2026-03-11 22:18:02 +01:00
|
|
|
# docker-entrypoint.sh — minimal, just sets up PATH and execs the command
|
2026-02-21 13:17:51 +01:00
|
|
|
|
2026-03-11 22:18:02 +01:00
|
|
|
export PATH=/usr/local/cargo/bin:/usr/local/go/bin:$HOME/.local/bin:$PATH
|
2026-02-21 16:42:44 +01:00
|
|
|
|
2026-03-11 22:18:02 +01:00
|
|
|
# Set npm prefix to user directory so global installs don't require root
|
|
|
|
|
npm config set prefix "$HOME/.local"
|
2026-02-21 16:42:44 +01:00
|
|
|
|
2026-03-11 22:18:02 +01:00
|
|
|
# Clear Zed external_agents on each start so Zed can re-download without
|
|
|
|
|
# hitting "Directory not empty" on atomic rename.
|
|
|
|
|
rm -rf "$HOME/.local/share/zed/external_agents"
|
2026-02-21 16:34:17 +01:00
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
|
exec /bin/bash
|
|
|
|
|
else
|
|
|
|
|
exec "$@"
|
|
|
|
|
fi
|