diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ #include <string> #include <filesystem> +#include <cstdlib> std::string to_lower(const std::string& str); @@ -23,7 +24,7 @@ void append(T& a, const T& b) std::string esc(const std::string& in); -std::vector<std::string> get_paths(); +std::vector<std::string> get_paths(const std::string& path_env = std::getenv("PATH")); std::string locate(const std::string& app, const std::vector<std::string>& paths, |