Skip to content

Commit

Permalink
Merge pull request #8 from itslukej/master
Browse files Browse the repository at this point in the history
Stop clipboard from adding a newline to the end
  • Loading branch information
OkashiOdayakana authored Jan 17, 2017
2 parents 1e3360a + c42ea9d commit a1be555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ function delete_scr() {

function clipboard() {
if is_mac; then
echo "${1}" | pbcopy
echo "${1}" | tr -d "\n\r" | pbcopy
else
echo "${1}" | xclip -i -sel c -f | xclip -i -sel p
echo "${1}" | tr -d "\n\r" | xclip -i -sel c -f | xclip -i -sel p
fi
}

Expand Down

0 comments on commit a1be555

Please sign in to comment.