From beadcf1f0d9cf8b9c0b14683bf40d27c142d33c5 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 9 Oct 2026 07:22:42 +0000 Subject: add history load/save --- src/path.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/path.cc') diff --git a/src/path.cc b/src/path.cc index 103e2c5..30e81cc 100644 --- a/src/path.cc +++ b/src/path.cc @@ -1,5 +1,12 @@ #include "path.h" +#include +#include + +#include "global.h" +#include "util/string.h" +#include "util/io.h" + namespace ov4 { @@ -67,5 +74,10 @@ string get_current_dir() return safe_str(getcwd(buf, MAXLINE)); } +string get_home_dir() +{ + return getpwuid(getuid())->pw_dir; +} + } -- cgit v1.3.1-4-g156e