Skip to content

Commit 378add3

Browse files
Pending changes exported from your codespace (#54)
1 parent 8d03773 commit 378add3

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

linux.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ def Bootloader():
141141
cman = open(echo,"r")
142142
print(cman.read())
143143
cman.close
144+
elif command == "history":
145+
placement = 0
146+
for i in history:
147+
placement += 1
148+
print(str(placement) + ". " + i)
144149
elif command =="rc":
145150
comlistdir = ""
146151
echo = input("Insert Path: ")

windows.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
cmancode = subprocess.Popen(["python", str(locationdir) + "/bin/functions/registry/r~1.py"])
1313
subprogram = False
1414
booted = False
15+
history = []
1516
# Colors
1617
class bcolors:
1718
HEADER = '\033[95m'
@@ -110,6 +111,7 @@ def Bootloader():
110111
locationdir = os.getcwd()
111112
comlistdir = locationdir + " "
112113
locationstr = os.listdir(os.path.dirname(os.path.realpath(__file__)))
114+
history.append("\"" + command + "\"")
113115
if command == "registry":
114116
#Registry
115117
subprocess.Popen(["python", str(locationdir) + "/bin/functions/registry/r~2.py"])
@@ -144,6 +146,11 @@ def Bootloader():
144146
cman = open(echo,"r")
145147
print(cman.read())
146148
cman.close
149+
elif command == "history":
150+
placement = 0
151+
for i in history:
152+
placement += 1
153+
print(str(placement) + ". " + i)
147154
elif command =="rc":
148155
comlistdir = ""
149156
echo = input("Insert Path: ")

0 commit comments

Comments
 (0)