View Single Post
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 2,879
cradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud of
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
Thats because it's not there by default. Try the following:
Copy this:

# ~/.bashrc: executed by bash(1) for non-login shells.

export PS1='\u@\hw$ '
umask 022

##########################################
#setting up file completion
#

if [ -f ~/.bash_completion ];
then
. ~/.bash_completion;
fi


############################################
# You may uncomment the following lines if you want 'ls' to be colorized:
#

export CLICOLOR='true'
export LSCOLORS="gxfxcxdxbxegedabagacad"

###########################################
# set up aliases
#

alias ll='ls -laghF'
alias l='ls -laghF'
alias grep='grep -n'
alias netconns='netstat -a -f inet'
alias cd..='cd ..'
alias ..='cd ..'
alias cls='clear'
# alias vi='vim'
# alias c++='g++'
# alias cc='gcc'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
alias ttop='top -ocpu -R -F -s 2 -n30'


Now type "pico .bashrc" (or you can use nano) without the quotes.
Paste the above into it.
Save. Quit and restart Terminal.
Your files and directories should now be in color.

You can set different colored prompts by using escape characters. Just add the codes to .bashrc. I use the one called "bash_styles". It lets you change prompts on the fly without having to restart Terminal.

Craig Domingue - resident redneck.
QUOTE Thanks