claude-memory/graph/solutions/shell-aliases-not-available-in-claude-code-bash-tool-a4efac.md

29 lines
1.1 KiB
Markdown

---
id: a4efacad-fda5-49ca-97a9-dd433f8a6a77
type: solution
title: "Shell aliases not available in Claude Code Bash tool"
tags: [claude-code, bash, aliases, major-domo, cli]
importance: 0.7
confidence: 0.8
created: "2026-01-23T20:40:33.351120+00:00"
updated: "2026-03-01T06:21:07.746655+00:00"
relations:
- target: 66bac9cf-1b1e-42f5-903d-d28a9d5e1e1a
type: RELATED_TO
direction: incoming
strength: 0.75
edge_id: 3537b1ab-3443-444e-8e93-fe866b42f202
- target: 055aea5f-7084-48ae-a096-69ee1c35e114
type: RELATED_TO
direction: incoming
strength: 0.7
edge_id: 853896ba-9204-49ce-b6da-0048ab1d78f7
- target: 250d2fe0-5866-42f1-b83d-187b3a64fb84
type: BUILDS_ON
direction: incoming
strength: 0.72
edge_id: 00724a32-f9ca-43af-93a9-3d7f7b356ec1
---
Bash aliases defined in ~/.bashrc (like 'majordomo') are not available in non-interactive shells used by Claude Code's Bash tool. Instead of using the alias, call the underlying command directly. Example: Use 'python ~/.claude/skills/major-domo/cli.py status' instead of 'majordomo status'.