diff --git a/common_env b/common_env index 2c95227..50911a0 100644 --- a/common_env +++ b/common_env @@ -141,6 +141,19 @@ if exists pnpm ; then fi fi +# Kiro terminal integration (conditional) +if [[ "$TERM_PROGRAM" == "kiro" ]] && exists kiro ; then + shell=$(shell_name) + if [ -n "$shell" ]; then + kiro_integration_path="$(kiro --locate-shell-integration-path "$shell" 2>/dev/null)" + if [ -n "$kiro_integration_path" ]; then + source_if_readable "$kiro_integration_path" + fi + unset kiro_integration_path + fi + unset shell +fi + # Windsurf support (conditional) # NOTE: Unlike other editors (code/cursor) that create symlinks in /usr/local/bin/, # Windsurf requires adding its own bin directory to PATH for just one command.