Skip to content

Commit

Permalink
Make code snippet executable when using copy button (#193)
Browse files Browse the repository at this point in the history
The code snippets have a copy button on the far right side of the 'code area'.
But when you paste the copied text into your terminal, the copied text is not executable: it has a dollar sign in the front. On the web page, it signifies the user's prompt, but in the terminal, the shell can't make any chocolate of it ;-)

So in order to facilitate the users that want to copy the code examples into their terminal windows, this PR proposes to remove the leading $-sign in the code snippets. And maybe you know something smart for multi-line snippets as well (rewrite using && perhaps?).
  • Loading branch information
rogererens authored Oct 30, 2023
1 parent 0e68d2a commit ff7aca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the [New Clojure project quickstart](https://blog.michielborkent.nl/new-cloj
### Homebrew (Linux and macOS)

```
$ brew install babashka/brew/neil
brew install babashka/brew/neil
```

### Scoop (Windows)
Expand Down

0 comments on commit ff7aca4

Please sign in to comment.