Compare commits

...

7 Commits
0.7.0 ... main

Author SHA1 Message Date
JaydenMW 60df8fc421 Update 'LICENSE' 2021-04-01 20:55:13 +00:00
JaydenMW 678e9ea890 Update 'README.md' 2021-03-02 18:35:21 +00:00
JaydenMW bb27162a4c Update 'README.md' 2021-03-02 18:17:37 +00:00
JaydenMW 216b553ce7 Merge pull request 'Minor fixes and improvements' (#1) from karx/pclish:main into main
Reviewed-on: #1
2021-03-02 18:15:46 +00:00
~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
3 changed files with 23 additions and 26 deletions

33
LICENSE
View File

@ -1,21 +1,18 @@
MIT License
Copyright (c) 2021 JaydenMW Team All rights reserved.
Copyright (c) [2021] [JaydenMW]
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
THIS SOFTWARE IS PROVIDED BY THE JAYDENMW TEAM "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL Berkeley Software Design, Inc. BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,9 +1,9 @@
# pclish.utilities.jaydenmw
A simple shell subsystem written in Python.
A simple shell subsystem written in Python that can has its own commands, and can run OS commands.
# Changelog 0.0.7
- Install script now clones to /tmp/
- Install script no longer uses ~/.jaydenmw (now uses ~/.local/bin)
- Shell can now be ran with (./shell) instead of (python3 shell.py)
- Minor enhancements to Install script and shell
# Changelog 0.0.7-hotfix1a
- Fixed shebang (tells linux what interpreter to use)
- Prompt shows system hostname instead of localhost (shell@hostname)
- Minor performance improvements
- Marked shell as executable

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: