grc - update rc script
* Don't use DATA to write out the rc script * Put it in prefix/etc instead of etc
This commit is contained in:
parent
d68fd0ad66
commit
11b3a33ab6
1 changed files with 22 additions and 20 deletions
|
@ -15,17 +15,10 @@ class Grc <Formula
|
|||
(share+'grc').install Dir['conf.*']
|
||||
man1.install %w[grc.1 grcat.1]
|
||||
|
||||
(etc+'grc.bashrc').write DATA.read rescue RuntimeError
|
||||
(prefix+'etc/grc.bashrc').write rc_script
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
New shell sessions will start using GRC after you run the following command:
|
||||
echo 'source "`brew --prefix`/etc/grc.bashrc"' >> ~/.bashrc
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
def rc_script; <<-EOS.undent
|
||||
GRC=`which grc`
|
||||
if [ "$TERM" != dumb ] && [ -n GRC ]
|
||||
then
|
||||
|
@ -42,3 +35,12 @@ then
|
|||
alias ping='colourify ping'
|
||||
alias traceroute='colourify /usr/sbin/traceroute'
|
||||
fi
|
||||
EOS
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
New shell sessions will start using GRC after you run the following command:
|
||||
echo 'source "`brew --prefix grc`/etc/grc.bashrc"' >> ~/.bashrc
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue