undollar
agent-ready non-interactive
undollar eats the dollar sign in the command you just pasted into your terminal
How to install undollar
npm install -g undollar undollar use case
Automatically remove leading dollar signs from terminal commands pasted from web tutorials or forums like StackOverflow
When to use undollar
- When frequently copy-pasting shell commands from online resources that include a '$' prompt character
- When annoyed by 'command not found' errors due to accidentally copied dollar signs
- When setting up a developer environment and want to eliminate a common copy-paste friction
When not to use undollar
- When you intentionally want to keep the dollar sign as part of a command (e.g., for variable expansion or in heredocs)
- When you prefer not to install global npm packages for minor convenience
undollar features
- · Registers '$' as a valid command that strips itself and runs the rest
- · No configuration required after installation
- · Lightweight global npm package
- · Works across all shells supported by npm
Want your agent to find this automatically?
Add the MCP server to your agent config and it will discover tools like undollar on its own.
Set up MCP →