2026-07-10 17:15:24 -04:00
|
|
|
#!/usr/bin/env zsh
|
2026-07-10 15:44:18 +02:00
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
2026-07-10 17:15:24 -04:00
|
|
|
# Suppress ZLE warnings from Oh My Zsh (no TTY in systemd)
|
|
|
|
|
setopt NOZLE 2>/dev/null || true
|
|
|
|
|
|
|
|
|
|
# Override TMPDIR — /tmp is noexec on Fedora, Bun needs an executable temp
|
|
|
|
|
export TMPDIR="{{ linux_dev_station_service_home }}/.cache/tmp"
|
|
|
|
|
mkdir -p "$TMPDIR"
|
|
|
|
|
# Clean stale files older than 7 days
|
|
|
|
|
find "$TMPDIR" -mindepth 1 -atime +7 -delete 2>/dev/null || true
|
|
|
|
|
|
2026-07-10 15:44:18 +02:00
|
|
|
{% if linux_dev_station_ssh_agent_enabled | bool %}
|
|
|
|
|
source "{{ linux_dev_station_scripts_dir }}/ssh-agent-start.sh"
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
cd {{ linux_dev_station_workspace_dir }}
|
|
|
|
|
|
|
|
|
|
exec code-server \
|
|
|
|
|
--bind-addr {{ linux_dev_station_code_server_host }}:{{ linux_dev_station_code_server_port }} \
|
|
|
|
|
--auth {{ linux_dev_station_code_server_auth }} \
|
|
|
|
|
--disable-telemetry \
|
|
|
|
|
{{ linux_dev_station_code_server_workspace }}
|