]> git.armaanb.net Git - gen-shell.git/commitdiff
remove aliases
authorArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Wed, 9 Dec 2020 14:57:47 +0000 (09:57 -0500)
committerArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Wed, 9 Dec 2020 14:57:47 +0000 (09:57 -0500)
src/main.cpp

index 144d9069980d49f770aa64e07896370fb3c55eb0..392ecf96bee09ed63fc363efe947889e2901754a 100644 (file)
@@ -4,7 +4,6 @@
 #include <cmake.h>
 #include <iostream>
 #include <../Sarge/src/sarge.h>
-#include <filesystem>
 #include <vector>
 #include <string>
 
@@ -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<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);