$One Alias to Skip the Claude Code Permission Prompt Forever
Stop typing claude --dangerously-skip-permissions every time. Set up a simple shell alias and just type cds instead.
If you use Claude Code from the terminal, you already know the drill. Every session starts with typing out claude --dangerously-skip-permissions — a mouthful that gets old fast.
Here's a one-liner fix. Run this once:
echo "alias cds='claude --dangerously-skip-permissions'" >> ~/.zshrc && source ~/.zshrc
That's it. From now on, just type cds and you're in.
What's happening here
alias cds='claude --dangerously-skip-permissions'creates a shortcut calledcds>> ~/.zshrcappends it to your shell config so it persists across sessionssource ~/.zshrcreloads the config immediately so you don't have to restart your terminal
If you're on bash instead of zsh, swap ~/.zshrc with ~/.bashrc.
A word of caution
The --dangerously-skip-permissions flag exists for a reason — it lets Claude execute commands without asking you first. Only use this in environments where you're comfortable with that level of autonomy. For most local dev work and side projects, it's a huge time saver. For production systems, think twice.
Happy hacking.