Added a new module for 'grc' that defines some aliases for some major color-coded output goodness.
This commit is contained in:
parent
2baa4dce0c
commit
8b0e49f82b
2 changed files with 52 additions and 0 deletions
23
modules/grc/README.md
Normal file
23
modules/grc/README.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
grc
|
||||
===
|
||||
|
||||
Defines grc aliases.
|
||||
|
||||
Aliases
|
||||
-------
|
||||
|
||||
- `colourify` runs the grc command with options.
|
||||
- `configure` run ./configure with color.
|
||||
- `make` run make with color.
|
||||
- `netstat` run netstat with color.
|
||||
- `ping` run ping with color.
|
||||
- `traceroute` run traceroute with color.
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
*The authors of this module should be contacted via the [issue tracker][1].*
|
||||
|
||||
- [Lance Speelmon](https://github.com/lancespeelmon)
|
||||
|
||||
[1]: https://github.com/sorin-ionescu/prezto/issues
|
29
modules/grc/init.zsh
Normal file
29
modules/grc/init.zsh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#
|
||||
# Defines grc aliases.
|
||||
#
|
||||
# Authors:
|
||||
# Lance Speelmon <lance@speelmon.com>
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
# assumes grc was installed in /user/local/bin
|
||||
if [[ ! -h '/usr/local/bin/grc' ]] || [[ "$TERM" == dumb ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
||||
alias colourify="/usr/local/bin/grc -es --colour=auto"
|
||||
alias configure='colourify ./configure'
|
||||
# alias diff='colourify diff' # already color coded with prezto
|
||||
alias make='colourify make'
|
||||
# alias gcc='colourify gcc'
|
||||
# alias g++='colourify g++'
|
||||
# alias as='colourify as'
|
||||
# alias gas='colourify gas'
|
||||
# alias ld='colourify ld'
|
||||
alias netstat='colourify netstat'
|
||||
alias ping='colourify ping'
|
||||
alias traceroute='colourify /usr/sbin/traceroute'
|
Loading…
Add table
Reference in a new issue