Re: [dev] Experimental editor

From: Nick <suckless-dev_AT_njw.me.uk>
Date: Fri, 17 Jun 2011 16:25:19 +0100

On Fri, Jun 17, 2011 at 07:15:22AM -0800, Andrew Hills wrote:
> On Fri, Jun 17, 2011 at 6:29 AM, Nick <suckless-dev_AT_njw.me.uk> wrote:
> > But if we're thinking about
> > breaking from the terminal, how would remote editing work?
> > Some sort of ssh piping from / to the file on the server?
> > I haven't thought this through, but it's certainly a usecase
> > which would be nice to cover.
>
> scp

sure. so when i try changing a variable in a config file,
your suggested usage is
scp myserver:/etc/myconfig /tmp/ \
&& $EDITOR /tmp/myconfig \
&& scp /tmp/myconfig myserver: \
&& ssh myserver sudo mv myconfig /etc/

(ignoring the fact that i'd need sudo to not prompt for a
password)

I'll stick with sudo vim /etc/myconfig, in that case. And
no, wrapping the above in a script is not sensible.
Received on Fri Jun 17 2011 - 17:25:19 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 17 2011 - 17:36:03 CEST