LinuxQuestions.org
Register a domain and help support LQ
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 06-27-2003, 12:27 PM   #1
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
Question Shell Prompt in KDE


Where is the file to edit/customize the shell prompt? I have a bash shell. Tried to look for bashrc or bash_profile but seems it is different in slack.
 
Old 06-27-2003, 04:08 PM   #2
ArnaudVR
Member
 
Registered: Jun 2003
Location: Belgium
Distribution: Slackware
Posts: 30

Rep: Reputation: 15
you're probably looking for /etc/profile or /etc/profile.d but you can always add the configuration files you wanted into your home directory for a more personal config.
 
Old 06-27-2003, 05:24 PM   #3
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Rep: Reputation: 30
man bash

Look for the section on prompting. Put the following in your .bash_profile:

export PS1=prompt

Where prompt is a prompt using the format found in the man page, in the prompting section.

Here is mine:

export PS1="[\u@\h \W]\$ "
 
Old 06-28-2003, 02:08 AM   #4
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Locura
man bash

Look for the section on prompting. Put the following in your .bash_profile:

export PS1=prompt

Where prompt is a prompt using the format found in the man page, in the prompting section.

Here is mine:

export PS1="[\u@\h \W]\$ "

Where is this .bash_profile?
 
Old 06-28-2003, 11:22 AM   #5
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
Quote:
Where is this .bash_profile?
Try an 'ls -la' in your home directory to see the "dot" files.
 
Old 06-28-2003, 11:52 AM   #6
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Not anywhere -be it in root or my home directory. Ieven did a file find but it is not there!
 
Old 06-28-2003, 02:19 PM   #7
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
Looks like the Slack book talks about using 'set'.
 
Old 06-29-2003, 12:21 AM   #8
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Talking Use /etc/profile To Change Prompt

Okay I found the "secret" of slackware.
ArnaudVR was right. It is /etc/profile that controls the shell prompt in my slack 9. And it also does it automatically by use of if --else for each possible shell anybody selects.

Thanks everyone!

Last edited by bongski55; 06-29-2003 at 12:22 AM.
 
  


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
What does your shell prompt look like? david_ross Linux - General 50 04-01-2011 12:15 AM
Different name at shell prompt XJNick Linux - General 3 08-25-2005 10:20 AM
Mandrake 9.1 boots into shell prompt instead of KDE environment? DanIdentity Linux - Software 5 10-05-2003 12:01 AM
Shell Prompt xneowolf Linux - General 5 01-26-2003 02:06 AM
C shell prompt robson Linux - General 2 11-12-2001 08:08 PM


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