Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I made myself a simpler version of this a while back. I would simply put the rcfile in a folder and then host that folder with:

  python2 -m SimpleHTTPServer 12345
Then you can just use something like the following function to get a remote session:

  sshrc() {
    ssh -R 12345:127.0.0.1:12345 -t ${*:1} 'bash -c "bash --rcfile <(curl -s http://127.0.0.1:12345/sshrc)"'
  }
This has some nice side effects in that you can then just host your vimrc the same way. I think you can get vim to load plugins from a http runtime path too, but I have never looked into it.

Doing it this way has its own quirks though.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: