Skip to content

Instantly share code, notes, and snippets.

@ali-aka-ahmed
Created November 19, 2025 22:14
Show Gist options
  • Select an option

  • Save ali-aka-ahmed/332b2e04158f9bfac3dfabf20301f136 to your computer and use it in GitHub Desktop.

Select an option

Save ali-aka-ahmed/332b2e04158f9bfac3dfabf20301f136 to your computer and use it in GitHub Desktop.
Claude Autorun Alias
# Claude command wrapper with YOLO mode
claude() {
# If the first arg is "yolo", rewrite the command
if [[ "$1" == "yolo" ]]; then
echo "⚠️ YOLO mode enabled… skipping permissions"
shift 1
command claude --dangerously-skip-permissions "$@"
else
# Otherwise pass everything through to the real claude binary
command claude "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment