Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-29-2011, 07:55 AM   #1
Registered: Jul 2007
Location: In a van down by the river...
Distribution: Slackware64-Current
Posts: 219

Rep: Reputation: 49
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

Old 05-29-2011, 08:02 AM   #2
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
Registered: Jul 2007
Location: In a van down by the river...
Distribution: Slackware64-Current
Posts: 219

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


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
[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 > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration