Skip to content

Commit

Permalink
ipfs-paste: try xclip on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscool committed Jul 27, 2015
1 parent 359aed3 commit 3376138
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions ipfs-paste
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,19 @@ Darwin)
clipaste="pbpaste"
;;
Linux)
clicopy="xsel -i"
clipaste="xsel -o"
if type xsel >/dev/null;
then
clicopy="xsel -i"
clipaste="xsel -o"
else
if type xclip >/dev/null;
then
clicopy="xclip -i"
clipaste="xclip -o"
else
die "xsel or xclip is needed on Linux"
fi
fi
;;
*) ;;
esac
Expand Down

0 comments on commit 3376138

Please sign in to comment.