LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-10-2009, 10:11 PM   #1
vanna
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
Unhappy terminal is not opening up: modified custom command


I was trying around various options in order to change the command prompt of terminal which displayed "bash-3.00$" to its original state which showed my login path.

Then I went to Edit>current profile>title & command> custom command and entered [vanna@linux ~] $
since whenever i try to open the text editor it crashes
how can i fix this??

Last edited by vanna; 03-10-2009 at 11:54 PM.
 
Old 03-10-2009, 10:40 PM   #2
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
The window is only the terminal emulator-- what runs in it is the shell. You want to change the command prompt within the shell. at your shell, type something like

Code:
export PS1="\[\033[1;30m\][\[\033[1;34m\]\u\[\033[1;30m\]@\[\033[0;35m\]\h\[\033[1;30m\]] \[\033[0;37m\]\W \[\033[1;30m\]\$\[\033[0m\] "
(I got this from http://www.hypexr.org/bash_tutorial.php#cmd_prompt)

I have absolutely no idea what the Title & Command option does in gnome-terminal but custom command runs some command instead of your shell, which is not what you want...
 
Old 03-10-2009, 10:57 PM   #3
vanna
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Red face sorry for not quoting properly : i am not able to open my terminal

sorry for not quoting properly : i am not able to open my terminal
i am working on a redhat linux. so cant type in the command u quoted

Last edited by vanna; 03-11-2009 at 12:43 AM.
 
  


Reply

Tags
command, title


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
command line//text editor Fred Caro Linux - Newbie 6 02-18-2009 11:23 AM
Need text editor w/ GOOD CUSTOM SYNTAX HIGHLIGHTING. (Dont care what langs come with) bdb4269 Programming 3 05-02-2007 03:17 AM
Text editor capable of opening Images. ////// Programming 5 11-07-2006 10:37 AM
Error when opening files with custom command in Gnome deejross Linux - Newbie 2 12-21-2005 10:50 AM
VI text editor in command line InSane103 Linux - Software 4 07-09-2003 09:04 PM


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