LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2006, 10:43 AM   #1
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Rep: Reputation: 15
Unhappy Strange problem with Gnome-terminal


Hi

When I bring up my terminal, it always looks something like this in the screen...

/home/fred$

Well, I don't remember exactly what was in there but I do know that my home folder/path was always listed. Now, for whatever crazy reason (and I'm not sure when, how or why) I've been getting this...

bash-3.1$

I don't want "bash"...I want the path to my home folder (like it used to be). Is there anyway to get that back again?.

Thank's!!
 
Old 05-21-2006, 11:36 AM   #2
dubz_444
Member
 
Registered: Mar 2006
Location: South Africa
Distribution: Arch Linux
Posts: 43

Rep: Reputation: 15
yes, by setting your PS1 environment variable

this is what mine looks like
PS1="\u@\h \W \$"

change it by saying (to what you particularly want)

PS1="\W $"

in console

\u - user
\h - hostname
\W - workng directory

as you can see from mine you can throw in characters anywhere you like (@,even "hello" if you want) try it!

Last edited by dubz_444; 05-21-2006 at 11:41 AM.
 
Old 05-21-2006, 12:37 PM   #3
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Thank you

Ok, I guess what would help the most is if I could just get the code that would set Gnome-Terminal back to the default where I end up with something like...

$home/Fred/

Another thing...Even when I type this stuff in, it always goes back to "bash" when I start the terminal again. Also, I can't "CD" into any of my folders like I used to be able to and reinstalling Gnome-terminal or using other terminals does nothing to solve any of these problems and I always still get the "bash" thing. How did I even get this in the first place??.

Anyway, thank's again!
 
Old 05-21-2006, 12:42 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to add the line

export PS1='\w\$' to your .bashrc (in your home directory). If it isn't there, create it.
 
Old 05-21-2006, 12:52 PM   #5
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
HOLY COW...guess what??. I just remembered that I deleted some "hidden" bash files from my home folder a few days ago because I thought they were some sort of spam I had gotten when I installed this one program.

Ok, what do I name this file (name/extension, etc) and do I have to put a period in front of it (like the hidden bash file had)?.

In other words, all of the bash files in my home folder are completely gone.

Thank again...you made my day!!!!

Last edited by TippyToes; 05-21-2006 at 12:53 PM.
 
Old 05-21-2006, 12:53 PM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The file is just called .bashrc and yes, the dot is there.

Last edited by Nylex; 05-21-2006 at 12:55 PM.
 
Old 05-21-2006, 12:55 PM   #7
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Ok, I'll try it...again thank's!.

Last edited by TippyToes; 05-21-2006 at 12:56 PM.
 
Old 05-21-2006, 12:57 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Sorry, "full stop" is what I call a period/dot.
 
Old 05-21-2006, 01:00 PM   #9
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Ok, what all goes in the default Fedora Core 5/Gnome-Terminal .bashrc file?. I see various examples but all have been heavily modified. I just want what I had before I deleted it.
 
Old 05-21-2006, 01:02 PM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
This I can't answer, I'm afraid (as I don't use Fedora).
 
Old 05-22-2006, 10:05 AM   #11
dubz_444
Member
 
Registered: Mar 2006
Location: South Africa
Distribution: Arch Linux
Posts: 43

Rep: Reputation: 15
all .bashrc are the same... it follows bash the program not the distribution


mine

--snip--

eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"
alias java="/usr/jdk1.5.0/bin/java"
alias javac="/usr/jdk1.5.0/bin/javac"

# Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac

--snip--


as you can see this sorts the stuff out.
 
  


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
Gnome-terminal problem mirabile dictu Linux - Newbie 1 02-15-2006 01:23 AM
gnome-terminal problem!!!! divin Linux - Software 2 03-26-2005 03:19 PM
gnome terminal flicker problem rosslaird Debian 0 12-08-2004 01:30 PM
Gnome terminal problem in Fedora Defaultman Linux - Software 0 02-11-2004 01:48 AM
Strange gnome-panel problem cosiek Linux - Software 0 12-13-2003 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 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