grc icon indicating copy to clipboard operation
grc copied to clipboard

colourify alias is messed up

Open zachschultz opened this issue 9 years ago • 3 comments

After installing fresh with Homebrew on MacOS, /usr/local/etc/grc.bashrc seems to set a very weird alias for colourify.

Instead of it being alias colourify='grc -es --colour=auto', it ends up being executed as alias 'colourify=grc is /usr/local/bin/grc -es --colour=auto', which as you can imagine threw some pretty big errors whenever I tried my ls command, or any other command relying on colourify.

My solution was to manually use grc instead of the $GRC generated at the top of the grc.bashrc file.

zachschultz avatar Feb 16 '17 06:02 zachschultz

Ran into the same issue.

Difficult to debug given that I had just set up a new macOS system and initially noticed the failure when trying to load Docker, so it wasn't entirely obvious where the error crept in.

@jeremyfelt's fix worked for me, but this proved a frustrating bug.

mshick avatar Feb 22 '17 21:02 mshick

Ran into the same issue. I solved following @jeremyfelt's fix, but I needed to change the new ls alias to include the -C flag to ensure multi column formatting of output from ls:

alias ls='grc --colour=auto ls --color=always -C'

samuelleach avatar Feb 26 '17 19:02 samuelleach

#136 is related - grc.bashrc is missing now.

HaleTom avatar Mar 14 '21 12:03 HaleTom