LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-06-2005, 07:46 AM   #1
gavita
LQ Newbie
 
Registered: Jun 2004
Posts: 24

Rep: Reputation: 15
Problem setting the PS1 enviroment



Hi there,

This is how the prompt on my xterm looks like : bash-2.05b#
It was not like thhis a few days ago. After installing the new Open Office, I was faced with this new look on my xterm. So, I uninstalled the new Open Office, and the problem still persisted.

I have read around, and have edited the ~/.bashrc to the following:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# by Sun Microsystems setup
DBROOT=/usr/local/bin/adabas
DBWORK=/usr/local/bin/adabas/sql
DBCONFIG=/usr/local/bin/adabas/sql
PATH=$DBROOT/bin:$DBROOT/pgm:$PATH
LD_LIBRARY_PATH=$DBROOT/lib:$LD_LIBRARY_PATH
PS1="[\u@\h \W]\\$ "

export PS1

export DBROOT DBWORK DBCONFIG PATH LD_LIBRARY_PATH
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

This does not work and I don't know waht to do to rectify the problem. Can someone please help?
 
Old 12-07-2005, 04:59 PM   #2
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
I think you need to `export $PS1` rather than `export PS1`.
 
  


Reply



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
help i can't save my PS1 setting Paxmaster Linux - Software 3 07-17-2004 10:39 PM
setting enviroment variables unimaginative Linux - General 5 01-08-2004 01:22 AM
Setting PS1 variable for KDE Konsole shell (RH9) robertmarkbram Linux - Software 4 10-14-2003 07:38 PM
setting the PS1 enviroment variable in xterm qanopus Linux - General 2 04-29-2003 08:41 AM
setting cygwin enviroment variables max2878 Linux - General 1 06-21-2002 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration