LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-17-2005, 11:53 AM   #1
tortle
Newbie
 
Registered: Jul 2004
Location: Wisconsin
Distribution: OpenSUSE, SUSE, Slackware
Posts: 22

Rep: Reputation: 15
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?
 
Old 01-17-2005, 01:17 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 01-17-2005, 01:21 PM   #3
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
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.
 
Old 01-17-2005, 01:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Read again ... if YOU set that Konsole can utilise it.


Cheers,
Tink
 
Old 01-18-2005, 09:57 AM   #5
tortle
Newbie
 
Registered: Jul 2004
Location: Wisconsin
Distribution: OpenSUSE, SUSE, Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
  


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 should I know before messing with Apache? Rundi Linux - Software 1 04-02-2005 11:46 AM
messing with syscalls m00t00 Programming 2 11-27-2004 03:28 PM
Anyone messing with Core3 yet? ArenaJAG Fedora 4 08-06-2004 04:27 PM
X is messing with me, or something is... Starchild Linux - General 2 09-27-2003 02:44 PM
RH keeps messing up...:( floyes Red Hat 4 09-06-2003 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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