Skip to content

Commit

Permalink
fix old default path
Browse files Browse the repository at this point in the history
h/t rgiordani
  • Loading branch information
nikvdp committed Dec 29, 2022
1 parent acbd322 commit 878b470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the contents of server1's clipboard.

For best results:

- make sure you have `pbproxy` installed and on `PATH` on all machines you'll
- make sure you have `pbproxy` installed at `~/.pbproxy` on all machines you'll
be copying/pasting to/from.
- **make sure you have key-based ssh authentication set up** (otherwise you'll
have to enter your password each time you copy or paste)
Expand Down
4 changes: 2 additions & 2 deletions pbproxy
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ main() {
if [[ -n "$remote_host" ]]; then
case "$SCRIPT_NAME" in
pbcopy | *copy*)
exec cat | ssh "$remote_host" '~/bin/pbcopy'
exec cat | ssh "$remote_host" '~/.pbproxy/pbcopy'
;;
pbpaste | *paste*)
exec ssh "$remote_host" '~/bin/pbpaste'
exec ssh "$remote_host" '~/.pbproxy/pbpaste'
;;
esac

Expand Down

0 comments on commit 878b470

Please sign in to comment.