On Jan 11, 2008 4:13 PM, Endolith <[EMAIL PROTECTED]> wrote:
> Beni Cherniavsky <[EMAIL PROTECTED]> writes:
> > <Alt+Up> appends the last word of the last command, so it won't do
> > what you want in general.
> > But what's wrong with "<Up><Home>sudo "?
>
> That's fine I guess.  Both this and "!!" are kind of awkward to type.

What would be less awkward than those two?  You can bind a key combo
to prepend "sudo" to your line, I guess.

> But just doing nothing when I type "sudo !!" is not very friendly.  At the
> least, it should pop up a message telling me the "fish way" to do it.

This is about as complicated as fully implementing "!!".

> At best, it should know which programs require sudo and tack it onto the
> beginning without me needing to specify it with a message explaining the
> implications.

Ideally, you should not have to type "sudo".  If a command requires
privileges, the user should be able to type the command and be asked
for the password.  If she does not give the right password, the
command is not executed.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to