aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/path.h b/src/path.h
index eb79ee8a..973e8a3a 100644
--- a/src/path.h
+++ b/src/path.h
@@ -20,7 +20,7 @@
/**
Returns the user configuration directory for fish. If the directory
- or one of it's parents doesn't exist, they are first created.
+ or one of its parents doesn't exist, they are first created.
\param path The directory as an out param
\return whether the directory was returned successfully
@@ -28,6 +28,19 @@
bool path_get_config(wcstring &path);
/**
+ Returns the user data directory for fish. If the directory
+ or one of its parents doesn't exist, they are first created.
+
+ Volatile files presumed to be local to the machine,
+ such as the fish_history and all the generated_completions,
+ will be stored in this directory.
+
+ \param path The directory as an out param
+ \return whether the directory was returned successfully
+*/
+bool path_get_data(wcstring &path);
+
+/**
Finds the full path of an executable. Returns YES if successful.
\param cmd The name of the executable.