starship::context
pub fn has_extension<'a>(dir_entry: &PathBuf, extensions: &'a [&'a str]) -> bool
checks if pathbuf matches the extension provided