Skip to content

๐Ÿ˜ˆ infect remote ssh sessions with your vim profile

License

Notifications You must be signed in to change notification settings

gWOLF3/viSSHous

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

40 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ˜ˆ 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

Daemon Mode (Recommended)

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

About

๐Ÿ˜ˆ infect remote ssh sessions with your vim profile

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published