[opensuse] reset .bashrc config
Hi all, I added some lines of code to .bashrc for having some hilighting colors. every thing works fine but i found a bigger problem is that my rm command is linked to svn it seems like when i do rm filename is equivalent to svn delete filename. I am not even sure it is due to that code that i added to my .bashrc. but i want to try to reset it as it was by default. Is there a way to do that? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2011-08-15 at 11:57 -0400, Adam Tong wrote:
Hi all,
I added some lines of code to .bashrc for having some hilighting colors. every thing works fine but i found a bigger problem is that my rm command is linked to svn it seems like when i do rm filename is equivalent to svn delete filename.
I am not even sure it is due to that code that i added to my .bashrc. but i want to try to reset it as it was by default.
Is there a way to do that?
Well, the easiest would be rm .bashrc, but as you state your 'rm' command does not really do what you want, this won't help. As a first instance (no so destructive) I would try to mv it away (vm .bashrc .bashrc.keep) so in case this was not the issue, you can at least revert to your own .bashrc without loosing a lot of time. If mv is also 'broken', then echo > .bashrc will give you an empty .bashrc file... almost the same, and should at least be good enough. Hth, Dominique -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Aug 15, 2011 at 12:02 PM, Dimstar / Dominique Leuenberger
On Mon, 2011-08-15 at 11:57 -0400, Adam Tong wrote:
Hi all,
I added some lines of code to .bashrc for having some hilighting colors. every thing works fine but i found a bigger problem is that my rm command is linked to svn it seems like when i do rm filename is equivalent to svn delete filename.
I am not even sure it is due to that code that i added to my .bashrc. but i want to try to reset it as it was by default.
Is there a way to do that?
Well, the easiest would be rm .bashrc, but as you state your 'rm' command does not really do what you want, this won't help.
As a first instance (no so destructive) I would try to mv it away (vm .bashrc .bashrc.keep) so in case this was not the issue, you can at least revert to your own .bashrc without loosing a lot of time.
If mv is also 'broken', then
echo > .bashrc
will give you an empty .bashrc file... almost the same, and should at least be good enough.
Hth, Dominique
I think you'll find if you full path commands, then aliases won't get in the way (e.g. /bin/rm or perhaps /usr/bin/rm or mv -- I don't have a suse box in front of me right now). I know this isn't a long term fix, but it should help you get unhamstrung/give you basic tools you need while you're sorting things out. I'd also look for 'original' dotfile copies in /etc/skel, although if things are done in very goofy ways at your site they may create the default dotfiles and jam them into user directories in some other fashion as IDs are created. hope this is of some use. -- Even the Magic 8 ball has an opinion on email clients: Outlook not so good. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dimstar / Dominique Leuenberger wrote:
On Mon, 2011-08-15 at 11:57 -0400, Adam Tong wrote:
Hi all,
I added some lines of code to .bashrc for having some hilighting colors. every thing works fine but i found a bigger problem is that my rm command is linked to svn it seems like when i do rm filename is equivalent to svn delete filename.
I am not even sure it is due to that code that i added to my .bashrc. but i want to try to reset it as it was by default.
Is there a way to do that?
Well, the easiest would be rm .bashrc, but as you state your 'rm' command does not really do what you want, this won't help.
As a first instance (no so destructive) I would try to mv it away (vm .bashrc .bashrc.keep) so in case this was not the issue, you can at least revert to your own .bashrc without loosing a lot of time.
Why not just comment out the extra lines (i.e. # at the start of them)? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Adam Tong
-
Dave Howorth
-
Dimstar / Dominique Leuenberger
-
zGreenfelder