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 .."
|