Re: vim and basic .bashrc questions

2003-01-20 Thread will trillich
On Mon, Jan 20, 2003 at 02:22:35AM +, iain d broadfoot wrote:
 * Seneca ([EMAIL PROTECTED]) wrote:
  On Sun, Jan 19, 2003 at 04:37:13PM -0800, CM Miller wrote:
   Also, I have been able to set .bashrc preferences as
   root, like rm = rm -i.  This works for root, but not
   for my user cmmiller.  

 however, this is a _BAD_IDEA_.
 
 if you happen to sit down at a machine where this alias is not active,
 and you think it is, guess what happens? :p
 
 iain

quite so. best to make a whole 'nother alias and use that
instead. zap, delete, xx...

alias xx='rm -i'

then you won't be in the habit of expecing a round of
confirmations when you try 'rm' on someone else's machine.
the worst that'll happen is you get

$ xx thisfile.ext
bash: xx: command not found

better than losing a file you really didn't want to delete.

-- 
I use Debian/GNU Linux version 3.0;
Linux server 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i586 unknown
 
DEBIAN NEWBIE TIP #66 from Will Trillich [EMAIL PROTECTED]
:
Do you know WHICH SHELL YOU'RE RUNNING? If not, you can find out:
ps T
and the first item listed is most likely to be your shell.
(Valid shells are listed in /etc/shells.) The default user shell
for Debian is bash, which you can learn about via man bash.

Also see http://newbieDoc.sourceForge.net/ ...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




vim and basic .bashrc questions

2003-01-19 Thread CM Miller


Just started running Debain as few weeks ago, I ran
Redhat for the last two years, and was ready to move
on. 

Anyway the install went good and I have two user
accounts, cmmiller and root.  

I like to do programming in the Linux environment
cause I love VIM.  I can run VIM as root, but not as
cmmiller.  

Also, I have been able to set .bashrc preferences as
root, like rm = rm -i.  This works for root, but not
for my user cmmiller.  

How can I make these changes for cmmiller as well? 

thanks

-Chris 



=
As a taxpayer, why should I support the war against Iraq this time, when it wasn't 
done right the first time?

*
GAIM ID:  cmmiller1973
*

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: vim and basic .bashrc questions

2003-01-19 Thread Seneca
On Sun, Jan 19, 2003 at 04:37:13PM -0800, CM Miller wrote:
 I like to do programming in the Linux environment
 cause I love VIM.  I can run VIM as root, but not as
 cmmiller.  

I've never had that problem with vim.  What happens when you try?

 Also, I have been able to set .bashrc preferences as
 root, like rm = rm -i.  This works for root, but not
 for my user cmmiller.  
 
 How can I make these changes for cmmiller as well? 

In ~cmmiller/.bash_profile uncomment:

  if [ -f ~/.bashrc ]; then
  source ~/.bashrc
  fi

-- 
Seneca
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: vim and basic .bashrc questions

2003-01-19 Thread iain d broadfoot
* Seneca ([EMAIL PROTECTED]) wrote:
 On Sun, Jan 19, 2003 at 04:37:13PM -0800, CM Miller wrote:
  I like to do programming in the Linux environment
  cause I love VIM.  I can run VIM as root, but not as
  cmmiller.  
 
 I've never had that problem with vim.  What happens when you try?
 
  Also, I have been able to set .bashrc preferences as
  root, like rm = rm -i.  This works for root, but not
  for my user cmmiller.  
  
  How can I make these changes for cmmiller as well? 
 
 In ~cmmiller/.bash_profile uncomment:
 
   if [ -f ~/.bashrc ]; then
   source ~/.bashrc
   fi
 

however, this is a _BAD_IDEA_.

if you happen to sit down at a machine where this alias is not active,
and you think it is, guess what happens? :p

iain

-- 
wh33, y1p33 3tc.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]