Factor is_potential_path to properly handle CDPATH

This will let us color cd commands better
This commit is contained in:
ridiculousfish
2012-05-07 17:31:24 -07:00
parent 1a264ab7c2
commit 0c79bb6e7c
5 changed files with 211 additions and 237 deletions

1
path.h
View File

@@ -68,6 +68,7 @@ bool path_is_valid(const wcstring &path, const wcstring &working_directory);
/** Returns whether the two paths refer to the same file */
bool paths_are_same_file(const wcstring &path1, const wcstring &path2);
/* Returns the current working directory as returned by wgetcwd */
wcstring get_working_directory(void);
#endif