Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.zprofile
README.md
remote.sh
remote.vim
tmux.remote.conf

README.md

rclip

Scripts for copy selected text via ssh. You can use other clipboard command by replacing pbcopy (Mac specific) in codes.

usage

  1. Install remote.vim file to remote server.
  2. Copy and paste from tmux.remote.conf file if you use TMUX on remote server.
  3. Move remote.sh file to $HOME/.ssh/remote.sh and make sure executable
chmod +x remote.sh
  1. Copy and paste from .zprofile to your favorite shell's configuration file. Then source your configuration file.
e.g.
bash - .bashrc or .bash_profile
zsh  - .zshrc or .zprofile
  1. Now connect to remote server with ssh-clip command. Press ,y to remote copy for VIM, and y for TMUX(Copy mode).

That's it.