Update 'shell.py'
This commit is contained in:
parent
7454bd308b
commit
1c475e65f3
6
shell.py
6
shell.py
|
@ -4,6 +4,8 @@ import os
|
|||
import subprocess
|
||||
import psutil
|
||||
import platform
|
||||
import socket
|
||||
import getpass
|
||||
|
||||
# Get System Information
|
||||
RAM = psutil.virtual_memory()
|
||||
|
@ -70,7 +72,7 @@ def pclish_ls():
|
|||
print("""pclish: this feature is not yet supported""")
|
||||
|
||||
def pclish_ver():
|
||||
print("""pclish: version 0.0.1a.""")
|
||||
print("""pclish: version 0.0.2a.""")
|
||||
|
||||
def pclish_mkdir():
|
||||
value = input("What would you like to name this new directory:\n")
|
||||
|
@ -92,7 +94,7 @@ def pclish_shtdwnsubsys():
|
|||
# Shell Prompt Customization and step 2 of command interpritation
|
||||
def main():
|
||||
while True:
|
||||
inp = input("shell@system >> ")
|
||||
inp = input(f"{getpass.getuser()}@{platform.node()}>> ")
|
||||
if inp == "exit":
|
||||
break
|
||||
elif inp[:3] == "cd ":
|
||||
|
|
Loading…
Reference in New Issue