From: Johannes Sixt Date: Wed, 18 Jul 2007 07:24:39 GMT Subject: Re: [PATCH] Do _not_ call unlink on a directory Message-ID: <469DC037.A7D69826@eudaptics.com> In-Reply-To: <20070717202754.GB25037@cip.informatik.uni-erlangen.de> Thomas Glanzmann wrote: > and as you can see by the > pastes that I provided to track down the bug I have > > if [ $UID -eq 0 ]; then > export PS1="(${PROMPT_RED}\h${PROMPT_END}) [${PROMPT_BLUE}\w${PROMPT_END}] "; > alias bk='echo DO *NOT* RUN BK AS ROOT' > alias git='echo DO *NOT* RUN GIT AS ROOT' > alias links='echo DO *NOT* RUN LINKS AS ROOT' > alias elinks='echo DO *NOT* RUN ELINKS AS ROOT' And if you have a file NOTES in $pwd, it will tell you: DO NOTES RUN GIT AS ROOT ;-P -- Hannes