From 2d68b250253eb07f8f796a6fe5f421efc90b70e1 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 6 Feb 2016 14:39:47 -0800 Subject: Early work towards moving the cd special autosuggestion into completions This will simplify some code and make the cd autosuggestion smarter --- src/path.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/path.h') diff --git a/src/path.h b/src/path.h index 973e8a3a..eec776a6 100644 --- a/src/path.h +++ b/src/path.h @@ -96,4 +96,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); +/* If the given path looks like it's relative to the working directory, then prepend that working directory. This operates on unescaped paths only (so a ~ means a literal ~) */ +wcstring path_apply_working_directory(const wcstring &path, const wcstring &working_directory); + #endif -- cgit v1.2.3