LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 04-04-2003, 02:51 AM   #1
L0CTiT3
LQ Newbie
 
Registered: Dec 2002
Posts: 6

Rep: Reputation: 0
Nice colors...


Anyone who can tell me how I can make colors in my Putty terminal window. Right now all text is white. I would like some difrent colors... Anyone who can tell me what to do ?

Btw, Ive got this Bach color shell..
I actually think that I need gnuls, but Im not sure.

# Define some colors first:
red='\e[0;31m'
RED='\e[1;31m'
blue='\e[0;34m'
BLUE='\e[1;34m'
cyan='\e[0;36m'
CYAN='\e[1;36m'
NC='\e[0m' # No Color
# --> Nice. Has the same effect as using "ansi.sys" in DOS.

# Looks best on a black background.....
echo -e "${CYAN}This is BASH ${RED}${BASH_VERSION%.*}${CYAN} - DISPLAY on ${RED}$DISPLAY${NC}\n" date if [ -x /usr/games/fortune ]; then
/usr/games/fortune -s # makes our day a bit more fun.... :-)
fi

function _exit() # function to run upon exit of shell
{
clear
echo -e "${RED}Hasta la vista, baby${NC}"
}
trap _exit 0

#---------------
# Shell prompt
#---------------

function fastprompt()
{
unset PROMPT_COMMAND
{
LOAD=$(uptime|sed -e "s/.*: \([^,]*\).*/\1/" -e "s/ //g")
TIME=$(date +%H:%M)
}
case $TERM in
*term | rxvt )
#PS1="${cyan}[\$TIME \$LOAD]$NC\n$RED\u@\h # $NC" ;;
PS1="${RED}\u@\w> $NC" ;;

linux )
PS1="${cyan}[\$TIME - \$LOAD]$NC\n[\h \#] \w > " ;;
* )
PS1="[\$TIME - \$LOAD]\n[\h \#] \w > " ;;
esac
}

fastprompt

alias ll="gnuls -al --color=always"
alias ls="gnuls --color=always"
alias xs="cd"
alias vf="cd"
alias moer="more"
alias moew="more"
alias kk="ll"
alias ..="cd .."
alias cd..="cd .."
 
Old 04-09-2003, 10:09 PM   #2
trn
Member
 
Registered: Feb 2003
Distribution: freebsd/gentoo
Posts: 68

Rep: Reputation: 15
mabye try alias ls=ls -GFC that will ls with colors and some other stuff.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Nice Links hadding Linux - Newbie 1 11-05-2003 07:04 PM
Google has been nice to my site. Is it nice to your site? Travis86 General 5 08-31-2003 01:38 PM
Nice and confused about nice Hangdog42 Linux - General 5 06-03-2003 04:44 PM
Really nice Wallpapers Palin General 2 02-15-2003 01:06 AM
Nice to get in before the crowd :-) MasterC General 4 08-27-2002 09:49 AM


All times are GMT -5. The time now is 05:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration