Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-17-2005, 11:53 AM
|
#1
|
Newbie
Registered: Jul 2004
Location: Wisconsin
Distribution: OpenSUSE, SUSE, Slackware
Posts: 22
Rep:
|
Who's messing about with my bashrc?
A while ago I noticed that aliases defined in my .bashrc wer not working. I looked, and something had added the following line at the top:
Code:
export PS1=$PS1"\[\e]31;\w\a\]"
So I took it out. Everything was ok for a couple of weeks, but this morning my aliases had stopped working again. And that wacky PS1 line was back.
Any idea who's doing this?
|
|
|
01-17-2005, 01:17 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
If you're still using Slackware, and didn't install special
packages that would "take care of your needs" for you
it must be yourself.... none of the packages that come with
slack do this.
Cheers,
Tink
|
|
|
01-17-2005, 01:21 PM
|
#3
|
Member
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401
Rep:
|
Well, Googling on the line that was added, I found this link:
http://webcvs.kde.org/*checkout*/kde.../tips?rev=1.14
Near the bottom is this entry.
<tip category="Konsole">
<html>
<p>...that if you let your shell pass the current directory to Konsole within the prompt
variable, e.g. for Bash with 'export PS1=$PS1"\[\e]31;\w\a\]"' in your ~/.bashrc, then
Konsole can bookmark it, and session management will remember your current working directory
on non-Linux systems too?
</html>
</tip>
I'm not entirely sure, but it looks like Konsole is adding it.
|
|
|
01-17-2005, 01:38 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Read again ... if YOU set that Konsole can utilise it.
Cheers,
Tink
|
|
|
01-18-2005, 09:57 AM
|
#5
|
Newbie
Registered: Jul 2004
Location: Wisconsin
Distribution: OpenSUSE, SUSE, Slackware
Posts: 22
Original Poster
Rep:
|
Quote:
Originally posted by Tino27
Well, Googling on the line that was added, I found this link:
|
Hey, good sleuthing! I never would have thought of trying to google a line with so many odd characters.
Quote:
I'm not entirely sure, but it looks like Konsole is adding it.
|
Well, I had suspected that, since I'd seen that come up in the "tip of the day" more than once; but I didn't see any indication that Konsole would do such a modification. Which doesn't mean it doesn't; I just don't yet have proof either way.
|
|
|
All times are GMT -5. The time now is 04:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|