module Byebug::Helpers::FileHelper

def shortpath(fullpath)


A short version of a long path
def shortpath(fullpath)
  components = Pathname(fullpath).each_filename.to_a
  return fullpath if components.size <= 2
  File.join("...", components[-3..-1])
end