Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site genrad.UUCP Path: utzoo!linus!decvax!genrad!john From: john@genrad.UUCP (John Nelson) Newsgroups: net.unix-wizards Subject: Re: Multiple file versions -- FLAME off!! Message-ID: <398@genrad.UUCP> Date: Thu, 4-Oct-84 12:39:48 EDT Article-I.D.: genrad.398 Posted: Thu Oct 4 12:39:48 1984 Date-Received: Fri, 5-Oct-84 20:29:12 EDT References: <2163@mit-hermes.ARPA> <> <378@ncoast.UUCP> Organization: GenRad, Bolton, Mass. Lines: 18 I have found that I don't need any backup versions of files - but that the "rm" command is too dangerous. I tend to type before I think, and thus do the wrong thing. I therefore alias rm to: alias rm \'ls\' -d \!\* \> ~/.backup/.lastremoved \;mv \!\* ~/.backup alias ri /bin/rm The .lastremoved stuff is for a script "unrm" which restores the last thing I removed. A simpler version would be "alias rm mv \!\* ~/.backup" In my .logout file, I use this to clean up the .backup directory: ( 'rm' -rf ~/.backup/* ~/.backup/.??* >& /dev/null & ) One of my co-workers uses a similar alias for "vi". That way any file edited is also copied to the backup directory.