From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Wed, 9 Dec 2020 14:57:47 +0000 (-0500) Subject: remove aliases X-Git-Url: https://git.armaanb.net/?p=gen-shell.git;a=commitdiff_plain;h=ba60ae19bf082bd00de3b3a3f56acaa425259b3b remove aliases --- 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);