From 0fb2015278789bd75fe9a3e8348c51dbc08a3f91 Mon Sep 17 00:00:00 2001 From: ~karx Date: Tue, 2 Mar 2021 12:05:35 -0600 Subject: [PATCH 1/3] Mark shell.py as executable --- shell.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 shell.py diff --git a/shell.py b/shell.py old mode 100644 new mode 100755 From 5fb834cb9d5ac69a67ac22aa10ee1c5e35d130c3 Mon Sep 17 00:00:00 2001 From: ~karx Date: Tue, 2 Mar 2021 12:09:36 -0600 Subject: [PATCH 2/3] Fix shebang --- shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.py b/shell.py index 074022d..12cfda8 100755 --- a/shell.py +++ b/shell.py @@ -1,5 +1,5 @@ -# PCLISH - Python Command Line Shell #!/usr/bin/env python3 +# PCLISH - Python Command Line Shell import os import subprocess From 8691c397f1e0d0c060297e5da0c225adfe651aef Mon Sep 17 00:00:00 2001 From: ~karx Date: Tue, 2 Mar 2021 12:09:48 -0600 Subject: [PATCH 3/3] Show system hostname in prompt, not just localhost --- shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.py b/shell.py index 12cfda8..f168537 100755 --- a/shell.py +++ b/shell.py @@ -13,7 +13,7 @@ OS = platform.system() HOST = socket.gethostname() VER = "PCLISH v0.0.6a-hotfix1a" -PROMPT = "shell@localhost$ " +PROMPT = "shell@{}$ ".format(HOST) def execute_command(command): try: