Shell and Terminal Configuration
Advanced shell configuration for the local execution environment, including shell detection, customization, and terminal interaction.
Shell Detection
Automatic Detection
The local adapter automatically detects the appropriate shell based on your platform:
import { $ } from '@xec-sh/core';
// Platform-based detection
const result = await $`echo $0`;
// Linux/macOS: /bin/sh, /bin/bash, or /bin/zsh
// Windows: cmd.exe or powershell.exe