Sha256: f4a1c5d991a0f7c01568f1405e6150dba04a808e38be0d0d349be913420b0a1e

Contents?: true

Size: 219 Bytes

Versions: 6

Compression:

Stored size: 219 Bytes

Contents

module JazzFingers
  module Commands
    COPY = Pry::CommandSet.new do
      command "copy", "Copy argument to the clip-board" do |str|
        IO.popen('pbcopy', 'w') { |f| f << str.to_s }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jazz_fingers-6.2.0 lib/jazz_fingers/commands/copy.rb
jazz_fingers-6.1.0 lib/jazz_fingers/commands/copy.rb
jazz_fingers-6.0.0.pre.rc1 lib/jazz_fingers/commands/copy.rb
jazz_fingers-5.2.2 lib/jazz_fingers/commands/copy.rb
jazz_fingers-5.2.1 lib/jazz_fingers/commands/copy.rb
jazz_fingers-5.2.0 lib/jazz_fingers/commands/copy.rb