https://github.com/freed-wu/undollar
:heavy_dollar_sign: strip the dollar sign from the beginning of the terminal command and an 'unpercentage' is provided for zsh user.
https://github.com/freed-wu/undollar
bash command-line-tool stackoverflow undollar zsh
Last synced: 5 months ago
JSON representation
:heavy_dollar_sign: strip the dollar sign from the beginning of the terminal command and an 'unpercentage' is provided for zsh user.
- Host: GitHub
- URL: https://github.com/freed-wu/undollar
- Owner: Freed-Wu
- License: gpl-3.0
- Created: 2023-07-15T04:01:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T20:22:34.000Z (over 1 year ago)
- Last Synced: 2024-10-22T14:44:03.577Z (over 1 year ago)
- Topics: bash, command-line-tool, stackoverflow, undollar, zsh
- Language: CMake
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# undollar
[](https://results.pre-commit.ci/latest/github/Freed-Wu/undollar/main)
[](https://github.com/Freed-Wu/undollar/actions)
[](https://github.com/Freed-Wu/undollar/actions)
[](https://codecov.io/gh/Freed-Wu/undollar)
[](https://github.com/Freed-Wu/undollar/releases)
[](https://github.com/Freed-Wu/undollar/releases/latest)
[](https://github.com/Freed-Wu/undollar/issues)
[](https://github.com/Freed-Wu/undollar/issues?q=is%3Aissue+is%3Aclosed)
[](https://github.com/Freed-Wu/undollar/pulls)
[](https://github.com/Freed-Wu/undollar/pulls?q=is%3Apr+is%3Aclosed)
[](https://github.com/Freed-Wu/undollar/discussions)
[](https://github.com/Freed-Wu/undollar/milestones)
[](https://github.com/Freed-Wu/undollar/network/members)
[](https://github.com/Freed-Wu/undollar/stargazers)
[](https://github.com/Freed-Wu/undollar/watchers)
[](https://github.com/Freed-Wu/undollar/graphs/contributors)
[](https://github.com/Freed-Wu/undollar/graphs/commit-activity)
[](https://github.com/Freed-Wu/undollar/commits)
[](https://github.com/Freed-Wu/undollar/releases/latest)
[](https://github.com/Freed-Wu/undollar/blob/main/LICENSE)
[](https://github.com/Freed-Wu/undollar)
[](https://github.com/Freed-Wu/undollar)
[](https://github.com/Freed-Wu/undollar)
[](https://github.com/Freed-Wu/undollar)
[](https://github.com/Freed-Wu/undollar)
[](https://github.com/Freed-Wu/undollar)
Strip the dollar sign from the beginning of the terminal command.
An 'unpercentage' is provided for zsh user.
For example, stackoverflow said:
````markdown
The command to init a git repository is:
```shell
$ git init
Initialized empty Git repository in /dev/shm/.git/
```
````
If you copy the line to your console directly:
```shell
$ $ git init
$: command not found
```
Now undollar makes it work:
```shell
$ $ git init
Initialized empty Git repository in /dev/shm/.git/
```
## Similar Projects
- : First undollar written in
javascript. I think undollar had better be independent from any programs
except shell only because the dollar problem only happens in console.
- : zsh plugin of undollar, only works for zsh.
just an alias: `alias $=''`
- : an undollar written in bash. Packaged
for homebrew.
- This project:
- Provide `$` for bash and `%` for zsh
- Provide shell completions for bash/zsh
- Only depends on sh
- Unit test
- Packaged for many distributions
## Install
### deb
Download [`*.deb`](https://github.com/Freed-Wu/undollar/releases) firstly.
```sh
deb -i *.deb
```
### rpm
Download [`*.rpm`](https://github.com/Freed-Wu/undollar/releases) firstly.
```sh
rpm -i *.rpm
```
### [AUR](https://aur.archlinux.org/packages/sh-undollar)
```sh
yay -S sh-undollar
```
### [NUR](https://nur.nix-community.org/repos/freed-wu)
```sh
nix-env -iA nur.repos.Freed-Wu.undollar
```
### homebrew
```sh
brew tap Freed-Wu/undollar https://github.com/Freed-Wu/undollar
brew install undollar
```