LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Who's messing about with my bashrc? (https://www.linuxquestions.org/questions/linux-newbie-8/whos-messing-about-with-my-bashrc-278896/)

tortle 01-17-2005 11:53 AM

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?

Tinkster 01-17-2005 01:17 PM

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

Tino27 01-17-2005 01:21 PM

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.

Tinkster 01-17-2005 01:38 PM

Read again ... if YOU set that Konsole can utilise it.


Cheers,
Tink

tortle 01-18-2005 09:57 AM

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 09:51 PM.