On Fri, Jun 17, 2011 at 07:15:22AM -0800, Andrew Hills wrote: > On Fri, Jun 17, 2011 at 6:29 AM, Nick <suckless-...@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.