From 1c475e65f3083c16ede783044c2f93325c892ba5 Mon Sep 17 00:00:00 2001 From: JaydenMW Date: Sun, 14 Feb 2021 16:48:27 +0100 Subject: [PATCH] Update 'shell.py' --- shell.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell.py b/shell.py index 6f64b1b..35abb78 100644 --- a/shell.py +++ b/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 ":