Wednesday, July 15, 2009

How to Color Your OS X Command Prompt

The world is more beautiful if the world is colourful... right...???
The world for IT-geeks is a TERMINAL... it's a very uninteresting looking for a black and white terminal, in this tutorial i'll show you how to color your command prompt :)

For bash shell user
1. Open Terminal window and do these commands!
$ cd ~
$ echo ‘alias ll=’ls -lG” >> .profile
$ echo ‘alias ‘ls=’ls
-G” >> .profile

2. close the terminal window,and open new terminal, check the result with these command
$ ls
$ ll

For tcsh user
1. OpenTerminal window, and do these commands !
> cd ~
> echo ‘alias ll=’ls -lG” >> .tcshrc
> echo ‘alias
‘ls=’ls -G” >> .tcshrc

2. close the terminal window,and open new terminal, check the result with these command !
> ls
> ll

No comments:

Post a Comment