Skip to content

Instantly share code, notes, and snippets.

@goddoe
Created February 11, 2026 18:28
Show Gist options
  • Select an option

  • Save goddoe/d59d5aae2b24b275eb935cb805551729 to your computer and use it in GitHub Desktop.

Select an option

Save goddoe/d59d5aae2b24b275eb935cb805551729 to your computer and use it in GitHub Desktop.
make_claude_shell.sh
cc() {
if [ -t 0 ]; then
# 인자 입력
if [ "$#" -eq 0 ]; then
echo "사용법: cc 텍스트 또는 echo 텍스트 | cc"
return 1
fi
TEXT="$*"
else
# 파이프 입력
TEXT="$(cat)"
fi
claude --dangerously-skip-permissions -p -c "$TEXT"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment