Skip to content

oh-my-fish/plugin-grc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation


plugin-grc

A grc plugin plugin for Oh My Fish.

Note: You need to have grc installed

screenshot

Install

$ omf install grc

Built-in command colorizers

Everyone supported by the original grc tool. If there are tools that are missing add them to the executables file and make a pull-request for it

Among 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:

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:

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:

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:

set -U grc_plugin_extras my_custom_executable

License

MIT © oh-my-fish et al

About

grc Colourizer for some commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages