Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oh-my-fish/plugin-grc
grc Colourizer for some commands.
https://github.com/oh-my-fish/plugin-grc
Last synced: 3 months ago
JSON representation
grc Colourizer for some commands.
- Host: GitHub
- URL: https://github.com/oh-my-fish/plugin-grc
- Owner: oh-my-fish
- License: mit
- Created: 2015-05-31T14:56:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T15:07:22.000Z (over 2 years ago)
- Last Synced: 2024-05-02T09:15:50.791Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 61
- Watchers: 9
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-list - grc
README
[![][travis-badge]][travis-link]
![][license-badge]
# plugin-grc
A [grc][grc] plugin plugin for [Oh My Fish][omf-link].
> Note: You need to have grc installed
![screenshot][screenshot]
## Install
```fish
$ omf install grc
```## Built-in command colorizers
Everyone supported by the original [grc](grc) tool. If there are tools that are
missing add them to the executables file and make a pull-request for itAmong others, it includes the following:
- `cat`
- `cvs`
- `df`
- `diff`
- `dig`
- `gcc`
- `g++`
- `ifconfig`
- `ls`
- `make`
- `mount`
- `mtr`
- `netstat`
- `ping`
- `ps`
- `tail`
- `traceroute`
- `wdiff`## Plugin options
It's possible to define additional command options via universal `grcplugin`
variables. For example:```fish
set -U grcplugin_ls --color -l
```Makes `grc` call `ls` with `--color` and `-l` options.
### Override command colorizers
It's possible to override the commands that are colorized via `grc_plugin_execs`
variable. For example:```fish
set -U grc_plugin_execs gcc g++ make
```Enables `grc` colorizing for only `gcc`, `g++` & `make` and disables all others.
### Ignore specific executables
Alternatively, you can specify commands that the plugin *should not* override.
You can do that via the `grc_plugin_ignore_execs` variable:```fish
set -U grc_plugin_ignore_execs ls
```### Specify custom executables
If you have custom executables that should be wrapped with `grc` specify them in
`grc_plugin_extras`:```fish
set -U grc_plugin_extras my_custom_executable
```# License
[MIT][mit] © [oh-my-fish][author] et [al][contributors]
[mit]: http://opensource.org/licenses/MIT
[author]: http://github.com/oh-my-fish
[contributors]: https://github.com/oh-my-fish/pkg-plugin-grc/graphs/contributors
[omf-link]: https://www.github.com/oh-my-fish/oh-my-fish[license-badge]: https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square
[travis-badge]: http://img.shields.io/travis/oh-my-fish/plugin-grc.svg?style=flat-square
[travis-link]: https://travis-ci.org/oh-my-fish/plugin-grc
[grc]: http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
[screenshot]: https://raw.githubusercontent.com/tannhuber/media/master/grc-plugin.png