https://github.com/xyproto/zsh-noregerts
If a command is missing, install it automatically and then run it. For Arch Linux and Zsh.
https://github.com/xyproto/zsh-noregerts
Last synced: 5 months ago
JSON representation
If a command is missing, install it automatically and then run it. For Arch Linux and Zsh.
- Host: GitHub
- URL: https://github.com/xyproto/zsh-noregerts
- Owner: xyproto
- License: gpl-2.0
- Created: 2023-09-01T14:05:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-01T23:09:02.000Z (about 2 years ago)
- Last Synced: 2025-01-11T00:56:43.265Z (9 months ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# zsh-noregerts
If a command is missing, install it automatically and then run it.
For Arch Linux and Zsh.
### Installation
Simply `install -Dm644 zsh-noregerts.zsh ~/.zsh/zsh-noregerts/zsh-noregerts.zsh` and then add this to your `~/.zshrc`:
source ~/.zsh/zsh-noregerts/zsh-noregerts.zsh
Passwordless `sudo` access is recommended, but it's not good practice, hence the name of this project.
### Example use
```
% cowsay hi
Updating files database...
Checking if cowsay is available in the Arch Linux repositories...
Package found containing /usr/bin/cowsay: extra/cowsay
Installing extra/cowsay...
Running cowsay...
____
< hi >
----
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```The next time `cowsay hi` is executed, the `command_not_found_handler` is not called and it just runs as normal:
```
% cowsay hi
____
< hi >
----
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```### General info
* License: GPL2
* Author: Alexander F. Rødseth <xyproto@archlinux.org>
* Version: 1.0.0