Prompt in Solaris 5.10 - newb ?


 
Thread Tools Search this Thread
Operating Systems Solaris Prompt in Solaris 5.10 - newb ?
# 1  
Old 11-01-2011
Tools Prompt in Solaris 5.10 - newb ?

Is there a way I can add color to my prompts when I am navigating in Solaris 5.10? I have figured out how to add my alias's to the .profile file but adding color to just my prompts and not the output would be awesome. Smilie
# 2  
Old 11-01-2011
What shell ? What colors ? How are you doing it on other platforms ?
# 3  
Old 11-01-2011
I use Tectia to connect to Solaris and I have the prompt that ends in > and if I type an unknown command it says "ksh: not found" so I was hoping that I could add color to my prompt so that it stands out from the output from the commands I use. Is this possible?
# 4  
Old 11-01-2011
yes, look here:
BASH Shell change the color of my shell prompt under Linux or UNIX

otoh, ls doesn't seem to take color option like in Linux
# 5  
Old 11-01-2011
Quote:
Originally Posted by MIBPreacher
Is this possible?
It is likely possible but you need to answer to some questions first.
What shell are you using ?
What colors do you want in the prompt and where ?
How are you doing it on other platforms ?
# 6  
Old 11-02-2011
ok

I am using Tectia 6.1. and I connect to Solaris 10. I am using the KSH shell. I have a .profile file that I use to store my aliases but when I use info I have found for KSH to change the color of the prompt, it does not work for me.

PS1="\[$(tput setaf 1)\]\u\[$(tput op)\]@\h:\w\$ " didnt work

I tried this site...
h ttp://www.understudy.net/custom.html

and I did the command echo $SHELL and got /bin/ksh
I tried the following command to add red only to my commands and not the output

PS1=$'\E[46;31m'`logname`@$'\E[1;33m'`hostname -s`:$'\E[0m>' #Custom prompt settings

and this didnt work either... I just want the hostname and the current working directory to be in Red while all output is in White.
# 7  
Old 11-02-2011
what is the result of
Code:
echo $TERM

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Help changing the PS1 prompt in Solaris

Hi, I need help changing PS1 in Solaris. I tried this: MYPROMPT="> " PS1=$LOGNAME@$HOSTNAME:${PWD}$MYPROMPT (NOT SURE WHY IT'S HIGHLIGHTED HERE) export PS1 My problem is that $PWD is not working, when I get the prompt and I change directories, the prompt is not displaying the current... (17 Replies)
Discussion started by: curiousmal
17 Replies

2. Solaris

Unable to move from rsc prompt to ok prompt

Hi, on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies

3. Solaris

No prompt from Solaris to WinXP Hyperterminal

hi I am new to unix and have found a SPARCstation 5 in the shed. I'm told by my father that it was working when it was put there about 8 years ago. It seems to boot up and makes all the right noises, both discs appear to make a noise, the keyboard lights flash etc., etc., but i can't seem to get... (2 Replies)
Discussion started by: harrystrickland
2 Replies

4. Solaris

Solaris machine is at # prompt not able to login in GUI mode

Solaris machine is at # prompt not able to login in GUI mode : I want to login solaris server in GUI mode from # prompt. ---------- Post updated 12-30-11 at 11:36 AM ---------- Previous update was 12-29-11 at 02:23 PM ---------- Hi, Please send me some guidelines regarding this.... as... (2 Replies)
Discussion started by: sunray
2 Replies

5. Solaris

Newb questions about Solaris 10.

For some reason, I have a v240 lying around. I was thinking of connecting it to a 1gbit backbone, but I have no experience with Solaris or Linux whatsoever. Here's what I would like to do: - Run a Apache Webserver(XAMPP) - Run a FTP Server and set the Home directory Here's some random... (1 Reply)
Discussion started by: Willekillen
1 Replies

6. Shell Programming and Scripting

How to list files in FTP prompt pagewise in solaris?

Hi, I have a solaris system with only ftp access.Need to get the list of files page wise display.. Also would like to redirect output of "ls" command to a text file in same directory. Can anyone suggest me the sollution for this? Rakesh (2 Replies)
Discussion started by: rakesh_noronha
2 Replies

7. UNIX for Dummies Questions & Answers

Change root prompt (Solaris)

Hello all. I was wondering if there is a way to change the root prompt. I am using Solaris 10 and would like to have the root prompt display the current directory along with 'SU' to indicate root status. What I have tried so far: /etc/passwd changed the root shell to korn with... (10 Replies)
Discussion started by: RobertSubnet
10 Replies

8. Solaris

Solaris 10 install doesn't display Network Connectivity prompt page

I have two Dell x86 machines on which I am attempting to install Solaris 10 from CD. I am not doing a Jumpstart install. This is my first experience in installing Solaris (or any other OS). I am following the instructions at How to Quickly Install the Solaris 10 1/06 OS The first machine... (3 Replies)
Discussion started by: sarahsi
3 Replies

9. UNIX for Dummies Questions & Answers

Ok I'm a Newb, Please Help

I am wanting to download the Linux Program. When i go to download it I see several things to download. What do i download exactly? Then what do I do to install it. Also I have partitioned my hard drive to make way for Linux on the other part to play with it, will any problems arise from this? I... (3 Replies)
Discussion started by: Seeto
3 Replies

10. UNIX for Dummies Questions & Answers

help for a newb

ok i just installed FreeBSD 4.8 on a computer i had lying around and it was working ok but then when i tried to set up KDE's xdm (kdm) i think i must have configured the login manager wrong because i cant login through the kdm and therefore i can log in to BSD at all?! please can someone help me... (5 Replies)
Discussion started by: h3x
5 Replies
Login or Register to Ask a Question