mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
fix(claude-code): improve error message for missing claude installation
This commit is contained in:
parent
be45d31acb
commit
a9fe2e7323
1 changed files with 5 additions and 1 deletions
|
|
@ -5,15 +5,19 @@
|
||||||
# Prerequisite check
|
# Prerequisite check
|
||||||
|
|
||||||
if ! (( $+commands[claude] )); then
|
if ! (( $+commands[claude] )); then
|
||||||
print "zsh claude-code plugin: claude not found. Install Claude Code: npm install -g @anthropic-ai/claude-code" >&2
|
print "zsh claude-code plugin: claude not found. Please install Claude Code before using this plugin." >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configuration variables
|
# Configuration variables
|
||||||
|
|
||||||
|
# Default model for clm function (e.g., opus, sonnet, haiku, or full model ID)
|
||||||
: ${ZSH_CLAUDE_DEFAULT_MODEL:=}
|
: ${ZSH_CLAUDE_DEFAULT_MODEL:=}
|
||||||
|
# Default reasoning effort level (low, medium, high, max)
|
||||||
: ${ZSH_CLAUDE_DEFAULT_EFFORT:=}
|
: ${ZSH_CLAUDE_DEFAULT_EFFORT:=}
|
||||||
|
# Default permission mode for claude sessions (e.g., plan, autoaccept)
|
||||||
: ${ZSH_CLAUDE_DEFAULT_PERMISSION_MODE:=}
|
: ${ZSH_CLAUDE_DEFAULT_PERMISSION_MODE:=}
|
||||||
|
# Auto-resume last conversation on new shell start (true/false)
|
||||||
: ${ZSH_CLAUDE_AUTO_CONTINUE:=false}
|
: ${ZSH_CLAUDE_AUTO_CONTINUE:=false}
|
||||||
|
|
||||||
# Core aliases
|
# Core aliases
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue