Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seem to customise grc with Homebrew. Am I doing something wrong? #3

Open
transat opened this issue Dec 10, 2013 · 1 comment
Open

Comments

@transat
Copy link

transat commented Dec 10, 2013

I've asked this question on superuser.com but maybe this is the best place to seek help? So here is the question:

I've installed grc through Homebrew on Mavericks. I can't quite understand the readme. What I want to do, for example, is have the terminal output colourise the number at the start of each line when I type 'history' in my bash terminal.

As I could not find a grc.conf file in the homebrew install, i've created a ~/.grc folder, copied the grc.conf file from https://github.com/pengwynn/grc/ and placed it in ~/.grc and added the following code at the bottom:

# history
(^|[/\w\.]+/)history
conf.history

I've also created a conf.history file containing the following:

# colourise numbers
regexp=\d+\s{2}
colours=bold blue
count=stop

and placed it both in ~/.grc and /usr/local/Cellar/grc/1.5/share/grc (because i wasn't sure where it should go).

When I type 'history', I'm not getting any colours though. And when I type 'grc history' I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/grc", line 117, in <module> os.execvp(args[0], args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 344, in execvp execvpe(file, args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 380, in _execvpe func(fullname, *argrest)
OSError: [Errno 2] No such file or directory

Any help to get this happening correctly would be greatly appreciated!

@kevinSuttle
Copy link

I noticed that grc.conf isn't being added to /etc/. Wondering if this has something to do with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants