Files
shell-utils/readme.md
2026-02-22 04:22:22 +01:00

30 lines
630 B
Markdown

## Usage
*Here is an example for `jg` (javascript grep):*
```sh
grep --color=always \
-rin "$@" \
--include "*.js" \
--include "*.mjs" \
--exclude "*.min.js" \
--exclude-dir node_modules \
| grep-mtime-sorter | ansi-trunc -l 250
```
## Global Installation
### HTTPS
```sh
sudo npm install -g 'git+https://gitea.efforting.tech/mikael-lovqvist/shell-utils.git#latest'
```
### SSH
> [!CAUTION]
> When you run `npm` as sudo, it will not use your users git configuration or identity. For now HTTPS is recommended instead.
```sh
sudo npm install -g 'git+ssh://git.efforting.tech:mikael-lovqvist/shell-utils.git#latest'
```