https://github.com/benmezger/dollar
Fix 'command not found: $' when copying and pasting commands from the internet
https://github.com/benmezger/dollar
bash command-not-found dollar shell
Last synced: 3 months ago
JSON representation
Fix 'command not found: $' when copying and pasting commands from the internet
- Host: GitHub
- URL: https://github.com/benmezger/dollar
- Owner: benmezger
- License: mit
- Created: 2021-05-05T12:25:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-05T12:46:47.000Z (over 4 years ago)
- Last Synced: 2025-04-05T08:24:10.656Z (6 months ago)
- Topics: bash, command-not-found, dollar, shell
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# $
`$` handles pasting and executing a command copied from the internet. Many
command-line examples are represented with a `$`, which requires you to remove
the first argument (`$`) before executing. This fixes this issue and allows
copy-paste-and-execute without having to worry on removing the dollar sign.## Installing
Copy `$` to somewhere your `PATH` can find, for example: `/usr/local/bin/`.
Or run `make install` for installing to `/usr/local/bin`
## Usage
Copy a command from the internet (be careful!) and paste to your command-line
without removing the `$`.### Before installing `$`
```sh
$ ls
zsh: command not found: $
$ ls -al
zsh: command not found: $
```### After installing `$`
```sh
$ ls
$ LICENSE README.md$ ls -al
total 24
-rwxr-xr-x 1 seds staff 136 May 5 09:15 $
drwxr-xr-x 6 seds staff 192 May 5 09:24 .
drwxr-xr-x 21 seds staff 672 May 5 08:57 ..
drwxr-xr-x 10 seds staff 320 May 5 09:25 .git
-rw-r--r-- 1 seds staff 1077 May 5 09:24 LICENSE
-rw-r--r-- 1 seds staff 688 May 5 09:23 README.md$ whoami
seds$ who
seds console Apr 29 08:46
```