forked from mikael-lovqvist/shell-utils
24 lines
612 B
Markdown
24 lines
612 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'
|
|
``` |