syntaxis/scripts/install-syntaxis
Jesús Pérez 9cef9b8d57 refactor: consolidate configuration directories
Merge _configs/ into config/ for single configuration directory.
Update all path references.

Changes:
- Move _configs/* to config/
- Update .gitignore for new patterns
- No code references to _configs/ found

Impact: -1 root directory (layout_conventions.md compliance)
2025-12-26 18:36:23 +00:00

20 lines
675 B
Bash
Executable File

#!/bin/bash
# Bash wrapper for syntaxis installation script
# Sets up NU_LIB_DIRS environment so NuShell can import modules
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
# Export NU_LIB_DIRS so nu scripts can use 'source xxx' imports
# Include: scripts dir, .cargo/bin, and config scripts dir
export NU_LIB_DIRS="$SCRIPT_DIR:$HOME/.config/syntaxis/scripts"
# Change to project root so Cargo.toml and configs are accessible
cd "$PROJECT_ROOT"
# Execute the NuShell installation script with all arguments
# Pass the script directory as a parameter for library path
nu "$SCRIPT_DIR/install-syntaxis.nu" "$@"