NightLion Logo

01-08-10

OSX Dark Terminal Theme for Mac Snow Leopard with Custom Bash Prompt

A new theme for OSX terminal. Hopefully this will breathe some life back into those of you who need a fresh change. I was motivated to do this after seeing the IR Black theme (for both Textmate and Terminal). The colors used in that theme were somewhat similar to mine, so I decided to create something a little different. Enjoy.

Installation

  • Install SIMBL
  • Install TerminalColors plugin for SIMBL (instructions available on Ciarán Walsh’s blog). If you are using Snow Leopard, please make sure to download the correct 64bit SIMBL plugin (direct link from GitHub here).
  • Download / Extract the Theme zip file.
  • Import the NightLion terminal theme.
  • Important: Update your .bashrc file. This is critical for displaying the correct colors and prompts. I have included a copy of my bashrc file in the terminal theme zip. To udpate your .bashrc file:
    • Open a new terminal window
    • Type “sudo nano .bashrc”
    • Copy the code from the included bashrc file or from the code below and paste it into your .bashrc file.
    • Press Ctrl-X to exit (yes to save).

Sample Screens

.bashrc Code

1
2
3
export TERM="xterm-color"
alias ls="ls -G"
export PS1="\e[1;30m\][\e[\e[1;30m\]\e[1;33m\] \u@\H \[\e[1;32m\]\w\[\e[0m\] \e[1;30m\]]\n[\[ \e[1;31m\]\T\[\e[0m\]\e[1;30m\] ] > \e[37m\]"

13 Comments

06-29-10 at 8:40 pm

thanks alot this is great, the other theme i had, had no color syntax for nano. you rock

Keven Marin
10-02-10 at 1:58 pm

Thanks Dude!
I like the bashrc configuration.

Briggs
11-01-10 at 8:25 am

Thanks for your post. I dig your theme. Only one problem with your “export PS1″ variable on your post (not the bashrc file, that is fine). The > symbol for the prompt was escaped to ‘>’. (Hopefully my escaping for this post will come out right as there is no preview). But if it didn’t I’ll just say: “The ‘greater than’ symbol was replaced with the HTML entity ‘ampersand+gt+semi-colon’. So, someone copying from your post might not understand why their terminal has that entity. But, perhaps you meant it as a lesson! :-)

Anyway, thanks for the theme, it looks nice. Change is always good!

Briggs.

kris
11-19-10 at 2:15 pm

Though the theme shows up, the colors are nothing like your screen shots, and the brackets don’t appear for me.

03-20-11 at 9:25 am

Awesome theme, loving it.

Toby
03-21-11 at 4:03 pm

I figured out the problem here.
You need to add the .bashrc code to ~/.bash_profile not ~/.bashrc

everything works after that.

penra
04-24-11 at 5:17 pm

How do I import the NightLion Terminal theme?

Idiot
04-25-11 at 2:24 am

I pasted your bash.rc overwriting what was already in mine… is this correct? I have just had a minor panic attack after realizing that i dont fully (read as “at all”) know what im doing. As such i dont know what i deleted in doing this… please advise?

cheers

Michael
04-30-11 at 10:43 am

I was having trouble with the .bashrc portion until I read Toby’s comment. Using .bashrc_profile got it done.

Ryan Marsh
05-19-11 at 4:24 pm

I’ve noticed that the first line of any command output is brighter than the rest. Is there any way to solve this?

05-24-11 at 6:48 pm

Check out a terminal color codes list on google. One of the last ones is a dark color code. You can replace it with a light color, or whatever you want.

d1egoaz
07-31-11 at 12:25 pm

nice!!!

macguy
08-05-11 at 11:42 pm

Hi –

A little warning for those on Lion. Its terminal program rejects the symbols plug-in. You get a nasty message when its starts up (something about the plugin wasn’t tested so it’s disabled)..

Just FYI…

Comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes