summaryrefslogtreecommitdiff
path: root/src/file.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-01-20 11:19:23 +1100
committerMaxime Coste <mawww@kakoune.org>2018-01-20 11:19:23 +1100
commit07dfcd336d31987ea30c6345a0674cd5c16ed21a (patch)
tree97d2fa3e3a0946e756c0df4f84727a2be2e88022 /src/file.hh
parente7cbf38af74b7841baf350ddcc85699d2295aeb7 (diff)
Fallback to getpwuid in the unlikely case $HOME is underfined
Add a homedir() helper function, and document the $kak_config env var.
Diffstat (limited to 'src/file.hh')
-rw-r--r--src/file.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file.hh b/src/file.hh
index 23fbe0a2..232ff539 100644
--- a/src/file.hh
+++ b/src/file.hh
@@ -25,6 +25,7 @@ String real_path(StringView filename);
String compact_path(StringView filename);
StringView tmpdir();
+StringView homedir();
// returns pair { directory, filename }
std::pair<StringView, StringView> split_path(StringView path);