- This script requires
wget
andunzip
utilities to be installed on your system. You can install them using your package manager.
The script will perform the following actions:
- Download the latest release of win32yank from its GitHub repository.
- Extract the downloaded zip file.
- Move the
win32yank.exe
executable to/usr/local/bin
. - Grant executable permissions to the executable.
- Clean up temporary files.
- This script requires sudo privileges to move the executable to
/usr/local/bin
and grant it executable permissions. - After installation, you can use the
win32yank.exe
command in your terminal.
For more information about win32yank, visit the GitHub repository.
This script automates the installation process for win32yank, a tool that enables clipboard integration between Windows and Linux systems, particularly useful for WSL (Windows Subsystem for Linux) or Cygwin users.
Win32yank is a utility that allows you to interact with the Windows clipboard from a Unix-like command line. It enables copying and pasting between Windows applications and Linux terminals seamlessly. This script simplifies the installation process by downloading, extracting, and setting up win32yank for immediate use.
-
Ensure you have
wget
andunzip
installed on your system. -
Download the script:
wget -O install.sh https://raw.githubusercontent.com/victor-dev-00/clip-nvim/main/install.sh
- Make the script executable:
chmod +x install_win32yank.sh
- Execute the script:
./install.sh
-
Open the
init.lua
file in a text editor. -
Copy and paste the following code:
vim.g.clipboard = {
name = "win32yank-wsl",
copy = {
["+"] = "win32yank.exe -i --crlf",
["*"] = "win32yank.exe -i --crlf",
},
paste = {
["+"] = "win32yank.exe -o --lf",
["*"] = "win32yank.exe -o --lf",
},
cache_enabled = true,
}
Clipboard tweak for neovim.