15 lines
366 B
Bash
15 lines
366 B
Bash
#!/usr/bin/env bash
|
|
# Automatically load the Nix flake development environment
|
|
use flake
|
|
|
|
# Add project-specific environment variables
|
|
export PROJECT_ROOT="$(pwd)"
|
|
export GOPATH="$PROJECT_ROOT/.go"
|
|
export GOBIN="$GOPATH/bin"
|
|
export GOCACHE="$PROJECT_ROOT/.gocache"
|
|
|
|
# Add Go bin to PATH
|
|
PATH_add "$GOBIN"
|
|
|
|
# Load any additional .env file if present
|
|
dotenv_if_exists |