LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-29-2011, 07:55 AM   #1
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
Bash 4.1$ prompt - How to change?


I'm sure this is easy, but I'm trying to change the Xfce Terminal Emulator prompt from bash-4.1$ to something like what kconsole has.

If i issue a /bin/bash -l in the terminal, then I get the prompt and the colors that I want, but I'd like this to automagically happen when I click the Terminal icon in the Xfce panel.

This is for Slackware 13.37 (32bit) and Terminal 0.4.6

Thanks!!
 
Old 05-29-2011, 08:02 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Set the environment variable PS1 to match.

IIRC, Terminal has an option in Preferences to "Start a login shell", and if you check that box and open a new Terminal your prompt should be what you want.
 
1 members found this post helpful.
Old 05-29-2011, 08:23 AM   #3
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Original Poster
Rep: Reputation: 56
Thanks, I check the box and now the prompt is what I want.
 
  


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
[SOLVED] Change bash prompt for user only spiky0011 Linux From Scratch 5 03-06-2011 04:00 AM
[SOLVED] bash prompt doesn't change from $ to # for su mike11 Linux - Newbie 7 01-25-2011 04:23 AM
help! bash command prompt font/color change richiangpan9 Linux - Newbie 3 04-24-2005 11:34 AM
make bash interactive and change prompt DropSig Linux - Newbie 3 05-17-2004 08:16 AM
How do I change the bash prompt in SuSE 8.2 Joey.Dale Linux - Distributions 3 12-08-2003 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:47 PM.

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