# File lib/pry/default_commands/gist.rb, line 166
        def copy(content)
          cmd = case true
          when system("type pbcopy > /dev/null 2>&1")
            :pbcopy
          when system("type xclip > /dev/null 2>&1")
            :xclip
          when system("type putclip > /dev/null 2>&1")
            :putclip
          end

          if cmd
            IO.popen(cmd.to_s, 'r+') { |clip| clip.print content }
          end

          content
        end