Compare commits

...

3 Commits

Author SHA1 Message Date
~karx 8691c397f1 Show system hostname in prompt, not just localhost 2021-03-02 12:09:48 -06:00
~karx 5fb834cb9d Fix shebang 2021-03-02 12:09:36 -06:00
~karx 0fb2015278 Mark shell.py as executable 2021-03-02 12:05:35 -06:00
1 changed files with 2 additions and 2 deletions

4
shell.py Normal file → Executable file
View File

@ -1,5 +1,5 @@
# PCLISH - Python Command Line Shell
#!/usr/bin/env python3
# PCLISH - Python Command Line Shell
import os
import subprocess
@ -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: