LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-13-2009, 02:51 AM   #1
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Rep: Reputation: 15
Bash hides current directory


Hey, newb question: In my terminal, I always see "bash-3.1 #" (sans quotes) as my prompt. How can I make it so I can see my current directory instead? If I don't run startx (just the basic command prompt when I boot up), it shows up just fine, like "/foo/bar #".

I'm running xfce4 in slack 13.0.

I tried searching for something about this, but I have no idea what the proper terminology is. Thanks in advance.
 
Old 09-13-2009, 03:03 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
stick this in ~/.bashrc

PS1="[\u@\h \W]\$"
PS2=">"
 
Old 09-13-2009, 03:32 AM   #3
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks!
 
  


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
Bash Expression: Current Directory & All Subdirectories Below gmcauley Programming 2 01-01-2007 02:36 PM
Bash to find and disect current working Directory carl0ski Linux - General 4 10-28-2006 04:36 AM
cd keeps snapping back to current directory when called from bash script ghrellin Linux - General 5 08-28-2005 12:50 PM
setting bash to look in current directory before searching the path muhkuhmasta Linux - Newbie 4 09-21-2004 02:08 AM
BASH: How to get current workin directory? gmitra Programming 9 09-20-2003 10:30 PM

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

All times are GMT -5. The time now is 08:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration