[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic root shell initialization



on Tue, 24 Jun 2003 01:36:18PM -0400, Derrick 'dman' Hudson insinuated:
> On the ("new") debian server at work, my boss wants bash to be in
> 'emacs' mode when he su's to root.  I work with 'vi' mode, however.
> Is there some way for the .bashrc to recognize whether he su'd to
> root or I did and set the editing mode appropriately?

is there no command-line option you can pass su to tell it which mode
to start up in?  that would be cool ...

(i'm assuming there's not, since it's dman asking ;)

</nori>

-- 
    .~.      nori @ sccs.swarthmore.edu
    /V\  http://www.sccs.swarthmore.edu/~nori/jnl/
   // \\          @ maenad.net
  /(   )\       www.maenad.net
   ^`~'^
            get my (*new*) key here:
   http://www.maenad.net/geek/gpg/7ede5499.asc
      (please *remove* old key 11e031f1!)



Reply to: