X-Git-Url: https://git.armaanb.net/?p=gen-shell.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=392ecf96bee09ed63fc363efe947889e2901754a;hp=144d9069980d49f770aa64e07896370fb3c55eb0;hb=ba60ae19bf082bd00de3b3a3f56acaa425259b3b;hpb=0bcdb9b302d6ab0090da8701cf1b0b76d1f6b03d diff --git a/src/main.cpp b/src/main.cpp index 144d906..392ecf9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,7 +4,6 @@ #include #include #include <../Sarge/src/sarge.h> -#include #include #include @@ -16,7 +15,6 @@ //////////////////////////////////////////////////////////////////////////////// using namespace std; -using std::filesystem::exists; const std::string getResponse(const std::string & prompt) { std::string response { @@ -106,18 +104,6 @@ int main(int argc, char** argv) string after_command; sarge.getFlag("after", after_command); - string alias_file - vector 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);