| ▲ | sdovan1 14 hours ago | |||||||||||||||||||||||||||||||||||||||||||
I often need to login to colleagues' machines at work, but I find that their settings are not what I am familiar with. So I wrote an SSH wrapper in POSIX shell which tars dotfiles into a base64 string, passes it to SSH, and decodes / setups on the remote temp directory. Automatically remove when session ends. Supported: .profile, .vimrc, .bashrc, .tmux.conf, etc. This idea comes from kyrat[1]; passing files via a base64 string is a really cool approach. | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | Joker_vD 12 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||
Or you can even bake the trap into the remote bash's invocation, although that'd be a bit harder. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | alsetmusic 11 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
I came across something similar a few months ago. I pieced together a working hybrid by patching in parts from an older release with the latest version. I didn't ever work out if the latest version failed because of something in my environment or not, but I'm on a Mac fwiw. | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | xuhu 4 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
How much time does it add when running e.g. "shittp user@lan-host uname" ? | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | 11 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
| [deleted] | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | amelius 12 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||
Ok, but what if your colleague does not have Vim installed? Wouldn't it make more sense to have a tool that brings files over to the local computer, starts Vim on them, and then copies them back? | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||