Skip to content

Commit

Permalink
Add pbpasten script
Browse files Browse the repository at this point in the history
Outputs the contents of the keyboard, like pbpaste, but ensuring that
a final newline is present.
  • Loading branch information
robmiller committed Feb 28, 2017
1 parent 051ff17 commit b209886
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/pbpasten
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
#
# Outputs the clipboard contents (OS X), ensuring that there's a final
# newline present.

`/usr/bin/pbpaste`.each_line do |line|
puts line
end

0 comments on commit b209886

Please sign in to comment.