mirror of https://github.com/garabik/grc.git
Merge pull request #81 from hamon-e/fish_update
do not colorize if output is not a terminal
This commit is contained in:
commit
ad736f824e
8
grc.fish
8
grc.fish
|
@ -15,6 +15,12 @@ set -U grc_plugin_execs cat cvs df diff dig gcc g++ ls ifconfig \
|
|||
|
||||
for executable in $grc_plugin_execs
|
||||
if type -q $executable
|
||||
alias $executable "grc $executable"
|
||||
function $executable --inherit-variable executable --wraps=$executable
|
||||
if isatty 1
|
||||
grc $executable $argv
|
||||
else
|
||||
eval command $executable $argv
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue