Sha256: 82467ab8e494587a09851f1821f7d4616edc75aa07120e54dc9b9ff444043ad3

Contents?: true

Size: 207 Bytes

Versions: 1

Compression:

Stored size: 207 Bytes

Contents

#!/usr/bin/env ruby

require "clipboard"

START = /\A(irb|\[\d+\] pry)/

Clipboard.copy(Clipboard.paste(:primary).lines.select { |ln| ln =~ START }.map do |line|
  line.gsub(/#{START}[^ ]+ ?/, "")
end.join)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
depryve-0.1 bin/depryve