You are not logged in.

#1 2005-12-30 20:24:05

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

I overwrote bashrc! D'oh! Any chance of getting it back?

I did a single redirect instead of double (>>) by a slip of the fingers, so I've lost bashrc... balls

I've got a terminal open that's using my original .bashrc, and I've recovered my aliases, PATH and MANPAGER variables... that's all I could think of. What else am I missing? :oops:


.oO Komodo Dave Oo.

Offline

#2 2005-12-30 20:26:48

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: I overwrote bashrc! D'oh! Any chance of getting it back?

First, add "set -o noclobber" to bashrc, it will prevent that from happening again (it disallows > to work on files that already exist).

Secondly, try running "env", it should dump the whole environment

Offline

#3 2005-12-30 20:35:47

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: I overwrote bashrc! D'oh! Any chance of getting it back?

You're a legend, thanks man.

I'd just been looking at your config online before you posted to find what I was missing, and had a look at the `set' manpage to see what the noclobber was all about... that's VERY useful!

Thanks a lot phrak big_smile

EDIT: I've just seen your $PROMPT_COMMAND too... that variable's so useful! I've been running a 'urxvt -e screen' alias for ages, and it irritated me...


.oO Komodo Dave Oo.

Offline

#4 2005-12-30 23:24:46

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: I overwrote bashrc! D'oh! Any chance of getting it back?

by a slip of the fingers, so I've lost bashrc... balls

cant help u with the bashrc, but ive seen some new balls on ebay ...

mind what u do with them fingers. looks like u could be dangerous smile

Offline

#5 2005-12-31 00:06:57

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: I overwrote bashrc! D'oh! Any chance of getting it back?

Hahaha, you bastard, it wasn't a list tongue


.oO Komodo Dave Oo.

Offline

#6 2005-12-31 02:35:42

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: I overwrote bashrc! D'oh! Any chance of getting it back?

Kern wrote:

cant help u with the bashrc, but ive seen some new balls on ebay ...

suddenly I'm reminded of the chief on south park singing salty balls....

Offline

#7 2005-12-31 02:44:48

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: I overwrote bashrc! D'oh! Any chance of getting it back?

put 'em in yer mouth and suck em!


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB