Skip to content

Commit

Permalink
Cygwin support via 'putclip'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Sutic committed Oct 8, 2015
1 parent 9a4d1cc commit 7499e6d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- add support for custom copy command (if xclip and others aren't accessible, and you want to have your
custom copy command)
- add cygwin support via `putclip` command

### v2.1.0, Jun 17, 2015
- add support for `xsel` on linux (@ctjhoa)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ binding in copy mode. In `v2.0.0` this key binding was changed to `Y` (shift-y).
- Debian / Ubuntu: `$ sudo apt-get install xclip` or `$ sudo apt-get install xsel`
- Red hat / CentOS: `$ yum install xclip` or `$ yum install xsel`

#### Cygwin requirements

- `putclip` command<br/>
Get the command by installing `cygutils-extra` package with Cygwin's
`setup*.exe`.

### Notes

**Mouse Support**
Expand Down
2 changes: 2 additions & 0 deletions yank.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ clipboard_copy_command() {
elif command_exists "xsel"; then
local xsel_selection="$(yank_selection)"
echo "xsel -i --$xsel_selection"
elif command_exists "putclip"; then # cygwin clipboard command
echo "putclip"
elif [ -n "$(custom_copy_command)" ]; then
echo "$(custom_copy_command)"
fi
Expand Down

0 comments on commit 7499e6d

Please sign in to comment.