Files
alexandre.pires 5818b05d96 Enhance Linux and macOS development station configurations:
- Add user management and Oh My Zsh settings
- Update service scripts to use Zsh
- Include new packages and environment variables
- Modify Terraform configuration for upstream services
2026-07-10 17:15:24 -04:00

25 lines
808 B
Django/Jinja

#!/usr/bin/env zsh
set -euo pipefail
# 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
{% 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 }}