diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-06 14:39:47 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-18 17:00:25 -0800 |
commit | 2d68b250253eb07f8f796a6fe5f421efc90b70e1 (patch) | |
tree | eed41798a1f5d624a4b3366c683569d5065b227b /src/path.h | |
parent | 1767681f9a61ac0789f5dafa76126e3446924b6d (diff) |
Early work towards moving the cd special autosuggestion into completions
This will simplify some code and make the cd autosuggestion smarter
Diffstat (limited to 'src/path.h')
-rw-r--r-- | src/path.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |