View Single Post
IvanLasston

 
IvanLasston's Avatar
 
Member Since: Feb 26, 2010
Location: Rocky Mountain High, Colorado
Posts: 2,116
IvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to behold
Mac Specs: 1.8 GHz i7 MBA 11" OSX 10.8.2

IvanLasston is offline
I like the homebrew scheme. How about something more interesting - here is my code to setup my bash prompt (put in ~/.profile)
Code:
export PS1='\e[0;31m\w\e[m\n\T (\! \j) > '
everything up to the \n is for directory -> the \n is for newline. \T is for time \! is for job number and \j is for running jobs.
More info here
How to: Change / Setup bash custom prompt (PS1)

Also because blue doesn't show up well on a black/transparent background I changed my lscolors for directory (note this code snippet is all comment except for the last line (the export line) - which is the actual setup for lscolors) I just keep it all in the ~/.profile so that I have a reference for it.

Code:
#ansi colors for ls
# a     black
# b     red
# c     green
# d     brown
# e     blue
# f     magenta
# g     cyan
# h     light grey
# A     bold black, usually shows up as dark grey
# B     bold red
# C     bold green
# D     bold brown, usually shows up as yellow
# E     bold blue
# F     bold magenta
# G     bold cyan
# H     bold light grey; looks like bright white
# x     default foreground or background
#order of LSCOLORS
# 1.   directory
# 2.   symbolic link
# 3.   socket
# 4.   pipe
# 5.   executable
# 6.   block special
# 7.   character special
# 8.   executable with setuid bit set
# 9.   executable with setgid bit set
# 10.  directory writable to others, with sticky bit
# 11.  directory writable to others, without sticky bit
#                        1 2 3 4 5 6 7 8 9 1011
export LSCOLORS='Hxfxcxdxbxegedabagacad'
To use colors -
Code:
ls -G
You can put that as an alias in your .profile
Code:
alias ls='ls -G'
Attached Images
File Type: png Screen Shot 2012-01-09 at 11.01.55 AM.png (153.7 KB, 48 views)
QUOTE Thanks