ViSSHous Save

😈 infect remote ssh sessions with your vim profile

Project README

😈 viSSHous

ViSSH Gif

What

"Infect Remotes with your Vim profile, every time you SSH."

Visshous enables you to automatically transport your .vimrc profile settings when doing work on remote servers by embedding the setup work into your ssh config itself, without having to manually 'copy/paste' or 'scp/sftp' files.

Requirements

  • OpenSSH version >= 7.6

Quickstart

NOTE: Daemon mode will create a user daemon to watch your "~/.vimrc" file for changes, and make sure you take those updates with you across servers.

Install with Homebrew (Mac)

brew tap gwolf3/homebrew-craft
brew install visshous

You should now be able to see the launchd process running:

brew services list

Install with Snap (Linux)

COMING SOON: AWAITING APPROVAL FROM SNAP STORE

Manual Mode

From local machine:

git clone https://github.com/gWOLF3/viSSHous.git
cd visshous && chmod +x vissh
source ./vissh

Then, simply use ssh as normal:

ssh <remote-machine>

How it Works

An SSH-native "push" model

At its core, Visshous takes advantage of standard but mostly unused standard sshd configuration variables to pass and install your vimrc/plugins without having to configure extra settings ('sshd' by default allows 'locale config' variables - see man locale if you're curious- to be passed on through a remote host). Therefore, we simply base64 encode our local .vimrc file, and pass that in through the ssh protocol itself as an env variable.

Once we're on the host, we decode our remote vimrc from that env variable and unpack/install any extra steps automatically with a RemoteCommand (also natively passed through ssh config). Because this solution passes the configuration in an 'ssh-native' way, it removes the need to take any extra steps.

Support

Shell Interpreters

  • Bash
  • Zsh

Plugin Managers

  • Vim-Plug (first class support with autoloading)
  • Vundle (detection but not autoloading, will be added soon)

Operating Systems

  • Debian
  • Ubuntu
  • MacOS
Open Source Agenda is not affiliated with "ViSSHous" Project. README Source: gWOLF3/viSSHous
Stars
34
Open Issues
0
Last Commit
3 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating