code: def short(cls, path):
          
          if not path:
              return path
  
          path = str(path)
          if cls.paths:
              for p in cls.paths:
                  if p:
                      path = path.replace(p + "/", "")
  
          path = path.replace(cls.home, "~")
          return path
docs: Example:
              short("examined /Users/joe/foo") => "examined ~/foo"
  
          Args:
              path: Path to represent in its short form
  
          Returns:
              (str): Short form, using '~' if applicable