New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Color your Mac Terminal?


Post Reply New Thread Subscribe

 
Thread Tools
DoubleCap

 
DoubleCap's Avatar
 
Member Since: Feb 12, 2007
Location: Northeast US
Posts: 552
DoubleCap will become famous soon enough
Mac Specs: MacBook 2GHz/2GB/CD

DoubleCap is offline
Hi, is there a tool that will color the mac terminal? I don't mean the regular change color of the font displayed, but something that will give a look like this: http://www.redhat.com/img/colored_prompt.png ?
QUOTE Thanks
caribiner23

 
caribiner23's Avatar
 
Member Since: Feb 06, 2005
Location: Chicago
Posts: 1,499
caribiner23 is just really nicecaribiner23 is just really nicecaribiner23 is just really nicecaribiner23 is just really nicecaribiner23 is just really nice
Mac Specs: MacBook Pro Retina 13" among far too many other Apple products

caribiner23 is offline
Did you try the Preferences in Terminal?

Terminal --> Window Settings... -> Color
QUOTE Thanks
RiDE

 
RiDE's Avatar
 
Member Since: Sep 13, 2006
Location: Deep in the heart of Texas!
Posts: 3,559
RiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond repute
Mac Specs: Mac's

RiDE is offline
Caribiner23 is corect, and if you would like those settings to stay after closing the terminal you need to click "Use as Default".
QUOTE Thanks
DoubleCap

 
DoubleCap's Avatar
 
Member Since: Feb 12, 2007
Location: Northeast US
Posts: 552
DoubleCap will become famous soon enough
Mac Specs: MacBook 2GHz/2GB/CD

DoubleCap is offline
Quote:
Originally Posted by stonecold View Post
Hi, is there a tool that will color the mac terminal? I don't mean the regular change color of the font displayed, but something that will give a look like this: http://www.redhat.com/img/colored_prompt.png ?
No, I know about that already. Did you go to the link I posted? Something that will have a different color for the, let's say, prompt, something different for the actual line you're typing, etc...
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 2,896
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
http://www.dotfiles.com/index.php?app_id=3

Various bash startup files. Colored prompts and more.

Craig Domingue - resident redneck.
QUOTE Thanks
RiDE

 
RiDE's Avatar
 
Member Since: Sep 13, 2006
Location: Deep in the heart of Texas!
Posts: 3,559
RiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond repute
Mac Specs: Mac's

RiDE is offline
This may help as well: http://sos.blog-city.com/mac_os_x__b...ttle_color.htm
QUOTE Thanks
DoubleCap

 
DoubleCap's Avatar
 
Member Since: Feb 12, 2007
Location: Northeast US
Posts: 552
DoubleCap will become famous soon enough
Mac Specs: MacBook 2GHz/2GB/CD

DoubleCap is offline
Thanks so far.

What do I do? How do I get these running?
QUOTE Thanks
cazabam

 
cazabam's Avatar
 
Member Since: Jun 06, 2006
Posts: 1,153
cazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of light
Mac Specs: MacBook 2.0GHz White, 512MB RAM, 60GB HDD

cazabam is offline
A quick google for 'bash prompt colour' brings back loads of tutorials and references. It's exactly the same for OS X as it is for just about any flavour of Linux or BSD
QUOTE Thanks
voiceofra

 
voiceofra's Avatar
 
Member Since: Mar 02, 2007
Location: St Helens, OR, USA
Posts: 250
voiceofra has a spectacular aura about
Mac Specs: MacBook CoreDuo 2Ghz 768M RAM

voiceofra is offline
open terminal
make sure you're in your home directory
open .profile with your favorite terminal editor (I'ma vi or nano kinda guy)
add alias ls = "ls -G".
QUOTE Thanks
DoubleCap

 
DoubleCap's Avatar
 
Member Since: Feb 12, 2007
Location: Northeast US
Posts: 552
DoubleCap will become famous soon enough
Mac Specs: MacBook 2GHz/2GB/CD

DoubleCap is offline
I'm in my home directory, and I type in "nano .profile" but nothing shows up.. only a blank text editor.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 2,896
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

Post Reply New Thread Subscribe


« Developing on a macbook | F90 Compiler not working ... »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
1st Time Mac Owner...Shunned hcmitchellr Switcher Hangout 20 02-22-2007 10:28 AM
Apples History.. Bainzey Schweb's Lounge 3 01-11-2007 10:33 PM
Disillusioned Mac desigener switches to Windows mogwai Schweb's Lounge 21 05-11-2006 02:05 PM
Thinkmac & Mac Tips Daily! Contest - Win some cool stuff onestep Schweb's Lounge 1 04-07-2006 03:26 PM
It's called a Mac iSheep Schweb's Lounge 22 10-13-2004 05:35 PM

All times are GMT -4. The time now is 07:44 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?