starship::context
pub fn path_has_name<'a>(dir_entry: &PathBuf, names: &'a [&'a str]) -> bool
checks to see if the pathbuf matches a file or folder name