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

Colors not showing up #1

Closed
httpNick opened this issue Oct 16, 2015 · 17 comments
Closed

Colors not showing up #1

httpNick opened this issue Oct 16, 2015 · 17 comments

Comments

@httpNick
Copy link

Hello,

When I install a theme such as AdventureTime it doesn't show up in the terminal properly. I think I am missing some kind of intermediate step? Here is a screenshot of what it shows after installing AdventureTime on my machine. I tried installing Tomorrow night and the text was just grey. Anyone know what I am missing? Thanks, and thank you for all the themes!

screen shot 2015-10-15 at 11 32 51 pm

@lysyi3m
Copy link
Owner

lysyi3m commented Oct 16, 2015

Hi!

Thank you for your feedback! It looks like you've don't enabled "Display ANSI colors" option in Terminal's preferences (⌘+, and go to "Profiles" tab).

Hope it helps.

@httpNick
Copy link
Author

Hey there thanks for the reply. - I believe I have it enabled. Is there anything that looks wrong here?

screen shot 2015-10-15 at 11 49 36 pm

@lysyi3m
Copy link
Owner

lysyi3m commented Oct 16, 2015

Okay, I see. Color schemes itself are just overwrite ANSI-color values in Terminal.app, but you have to enable color formatting in command line utilities to see any formatted output.

Here some options:

  1. Manually enabling color formatting for such commands like ls:
    Open your .bash_profile or .bash_profile (I believe you're using bash shell, am i right?) in any text editor like nano ~/.bash_profile and paste following somewhere in the end of file:
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'

Then save it, exit editor and type source ~/.bash_profile.

  1. Simpler variant: install grc via homebrew
$ brew install grc
$ echo 'source "`brew --prefix`/etc/grc.bashrc"' >> ~/.bash_profile
$ source ~/.bash_profile

It'll give you more color formatting options

  1. Another great solution - install zsh shell with oh-my-zsh. There are dozen of formatting themes for shell prompt (with colorized output). It works pretty well with schemes in my repo.

@gantaa
Copy link

gantaa commented Apr 9, 2016

Thanks for the bash_profile tip. works great!

@lysyi3m
Copy link
Owner

lysyi3m commented Apr 11, 2016

@gantaa, cheers! 🍻

@3rror404
Copy link

Hey @lysyi3m, I had to edit the bash_profile on both of my Macs. Might be worth adding this step to the installation instructions.

Thanks for the themes!

@oddukgi
Copy link

oddukgi commented Sep 20, 2016

This command didn't work. type this.
echo 'source "brew --prefix grc/etc/grc.bashrc"' >> ~/.bash_profile

@oddukgi
Copy link

oddukgi commented Oct 15, 2016

I fix my bug.. Thanks all !
2016-10-15 1 44 07

@npoisonivy
Copy link

I got this error "Error: Unknown command: –prefix" after running below line..
echo ‘source “brew –prefix grc/etc/grc.bashrc”‘ >> ~/.bash_profile

Can anyone please help me on this? This is what I have at my file:
image

The file name displayed on my Finder is
image

But somehow on my sublime, the file name is corrupted as this. I am not sure if this cause the problem.
image

@NathanHazout
Copy link

@lysyi3m I am trying option (2), and the echo line does not work, maybe some issues with formatting?

@lysyi3m
Copy link
Owner

lysyi3m commented Aug 7, 2018

@nasht00 oops. Some weird formatting issue. Snippet updated.

@cemuka
Copy link

cemuka commented Aug 19, 2018

I couldn't make it work either. echo line return that error: -bash: $: command not found.

@lysyi3m
Copy link
Owner

lysyi3m commented Aug 19, 2018

@cemuka $ sign represents the standard shell prompt and is usually used to show that the commands need to be entered in terminal. $ is not part of the command

@cemuka
Copy link

cemuka commented Aug 19, 2018

@lysyi3m oh my bad! didn't notice it. thank you!

@ng-xcv
Copy link

ng-xcv commented Dec 15, 2019

Thanks a lot ☺️

@smartin
Copy link

smartin commented Jan 21, 2020

Thank u!

@vwtlin
Copy link

vwtlin commented Aug 24, 2022

Thanks a lot for the solution!

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