Closed kscoulter closed 6 years ago
Hey @searls, I've been pairing with @kscoulter on some node fundamentals. I didn't realize how this might be confusing to new users who could copy/paste the entire $ npm install
directive in the documentation. I think this is a good improvement :)
Sure, I'm fine with this. For what it's worth, because the Internet is full of markdown code fences that use $
prefixes to indicate a prompt, you can make them copy-paste friendly in your terminal by adding a custom script to your PATH
. In my ~/bin
directory, I wrote a script named ~/bin/$
:
#!/bin/bash
"$@"
This basically just ignores leading $ …
characters and runs whatever comes after. Saves me a lot of time when I'm too lazy or imprecise to copy-paste everything I need from a README perfectly.
An extra
$
sign is confusing because it is also used in the variable declaration$(npm bin)
. As a new user to this library I copy/pasted the entire expression, but the $ threw an exception.