├── $ ├── LICENSE ├── README.md ├── package-lock.json └── package.json /$: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "$@" 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Free Public License 1.0.0 2 | 3 | Permission to use, copy, modify, and/or distribute this software for 4 | any purpose with or without fee is hereby granted. 5 | 6 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 7 | WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 8 | OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE 9 | FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY 10 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 11 | AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 12 | OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Dollar Sign 2 | ============================= 3 | 4 | For when you accidentally copy the dollar sign and your shell returns "$: command not found". 5 | 6 | ## Installation 7 | 8 | Add the executable to your path and give it permissions. 9 | 10 | ``` 11 | sudo printf '#!/bin/sh\nexec "$@"\n' > /usr/local/bin/$ 12 | sudo chmod +x /usr/local/bin/$ 13 | ``` 14 | 15 | Or to install using [`npm`](https://www.npmjs.com/): 16 | 17 | ``` 18 | npm -g install @fraction/dollar-sign 19 | ``` 20 | 21 | ## Usage 22 | 23 | Use the dollar sign or don't use the dollar sign – it doesn't matter at all. 24 | 25 | ```sh 26 | $ echo "Hello world" 27 | # Hello world 28 | 29 | $ $ $ $ $ $ $ echo "Hello world" 30 | # Hello world 31 | ``` 32 | 33 | ## Support 34 | 35 | Please [open an issue](https://github.com/fraction/dollar-sign/new) for questions and concerns. 36 | 37 | ## Contributing 38 | 39 | Fork the project, commit your changes, and [open a pull request](https://github.com/fraction/dollar-sign/compare/). 40 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@fraction/dollar-sign", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1 5 | } 6 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@fraction/dollar-sign", 3 | "version": "1.0.0", 4 | "description": "$: command not found", 5 | "bin": { 6 | "$": "./$" 7 | }, 8 | "scripts": {}, 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/fraction/dollar-sign.git" 12 | }, 13 | "keywords": [ 14 | "sh", 15 | "shell", 16 | "bash" 17 | ], 18 | "author": "Fraction LLC", 19 | "license": "0BSD", 20 | "bugs": { 21 | "url": "https://github.com/fraction/dollar-sign/issues" 22 | }, 23 | "homepage": "https://github.com/fraction/dollar-sign#readme" 24 | } 25 | --------------------------------------------------------------------------------