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