#include <cmake.h>
#include <iostream>
#include <../Sarge/src/sarge.h>
-#include <filesystem>
#include <vector>
#include <string>
////////////////////////////////////////////////////////////////////////////////
using namespace std;
-using std::filesystem::exists;
const std::string getResponse(const std::string & prompt) {
std::string response {
string after_command;
sarge.getFlag("after", after_command);
- string alias_file
- vector<string> alias_files = {"$XDG_CONFIG_HOME/gen-shell/aliases",
- "$HOME/.config/gen-shell/aliases"};
- for(const auto &file : alias_files)
- {
- if (exists(file))
- {
- alias_file = file;
- break;
- }
- }
-
// Do the stuffs!
while (true) {
auto command = getResponse(prompt);