Merge pull request #81 from hamon-e/fish_update

do not colorize if output is not a terminal
This commit is contained in:
Radovan Garabík 2018-04-28 19:13:06 +02:00 committed by GitHub
commit ad736f824e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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