You are not logged in.

#1 2009-07-24 15:43:19

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

[Solved] How to un-source /etc/profile?

I recently installed autojump. The directions given after install say to source /etc/profile in your .bashrc. I stupidly typed source /etc/profile instead of editing it into ~/.bashrc. Now my PS1 shows up as the default prompt, but I would like to have my custom prompt back. In short, how to I change my system back to the way it was before I typed source /etc/profile?

Last edited by soupcan (2009-07-24 17:56:49)

Offline

#2 2009-07-24 15:57:50

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [Solved] How to un-source /etc/profile?

source .bashrc

Offline

#3 2009-07-24 17:55:38

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: [Solved] How to un-source /etc/profile?

Procyon wrote:

source .bashrc

I tried that first, but it didn't change back.

EDIT: Ooops... I left source /etc/profile at the end of my .bashrc. That's what was causing the problem. Thanks!

Last edited by soupcan (2009-07-24 17:56:37)

Offline

#4 2009-07-24 18:03:40

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Solved] How to un-source /etc/profile?

You might want to put it at the beginning of .bashrc, not the end. wink

Offline

Board footer

Powered by FluxBB