module Tryouts::Console

def pretty_path(file)


only the relevant parts of file paths instead of lengthy absolute paths.
directory. This simplifies logging and error reporting by showing
Converts an absolute file path to a path relative to the current working
def pretty_path(file)
  return nil if file.nil?
  file     = File.expand_path(file) # be absolutely sure
  basepath = Dir.pwd
  Pathname.new(file).relative_path_from(basepath).to_s
end