LinuxQuestions.org
Review your favorite Linux distribution.
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 01-22-2004, 09:10 PM   #1
Dravis
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.1
Posts: 15

Rep: Reputation: 0
Post Changing the BASH prompt?


I just upgraded to KDE 3.2beta2 on Slackware, and since then Konsole has been giving the plain bash-2.05b$ prompt. Before it would act like "normal" (I cannot think of the right name, the ones you see if you press Cntrl+Alt+F1) terminals, and put something like "root@localhost:/etc#". How can I change Konsole/BASH so that I see the better "root@localhost:/etc#" type prompt?
 
Old 01-22-2004, 09:14 PM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
http://www.gilesorr.com/bashprompt/
 
Old 01-22-2004, 09:17 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926
The difference is that it's not a login-shell anymore.
To achieve the same behaviour just create a
.bashrc and put
export PS1="[\u@\h:\w]$ "

Alternatively, create a new icon for konsole and
append whichever parameter it takes to invoke it
as a login-shell ;) [for xterm it's -ls, for rxvt it's
--loginShell] ...



Cheers,
Tink
 
  


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
changing the BASH shell prompt 24jedi *BSD 12 03-01-2005 03:11 AM
Changing Bash Prompt socks Slackware 11 02-09-2005 06:32 PM
Changing the BASH Prompt Blade_Powers Linux - Newbie 4 03-28-2004 09:21 PM
changing the way the bash prompt shows up Quartzophobia Linux - General 10 02-15-2004 02:37 PM
Changing the command prompt in bash george3k Linux - General 4 07-11-2001 08:10 PM

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

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