LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 12:53 PM   #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, 02:17 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 02:21 PM   #3
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

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, 02:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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


Cheers,
Tink
 
Old 01-18-2005, 10: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 12:46 PM
messing with syscalls m00t00 Programming 2 11-27-2004 04:28 PM
Anyone messing with Core3 yet? ArenaJAG Fedora 4 08-06-2004 05:27 PM
X is messing with me, or something is... Starchild Linux - General 2 09-27-2003 03:44 PM
RH keeps messing up...:( floyes Red Hat 4 09-06-2003 03:36 PM


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