From ba60ae19bf082bd00de3b3a3f56acaa425259b3b Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Wed, 9 Dec 2020 09:57:47 -0500 Subject: [PATCH] remove aliases --- src/main.cpp | 14 -------------- 1 file changed, 14 deletions(-) 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); -- 2.39.2