Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
JaydenMW | 60df8fc421 | |
JaydenMW | 678e9ea890 | |
JaydenMW | bb27162a4c | |
JaydenMW | 216b553ce7 | |
~karx | 8691c397f1 | |
~karx | 5fb834cb9d | |
~karx | 0fb2015278 |
33
LICENSE
33
LICENSE
|
@ -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
|
1. Redistributions of source code must retain the above copyright notice,
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
this list of conditions and the following disclaimer.
|
||||||
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:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
THIS SOFTWARE IS PROVIDED BY THE JAYDENMW TEAM "AS IS" AND ANY
|
||||||
copies or substantial portions of the Software.
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
IN NO EVENT SHALL Berkeley Software Design, Inc. BE LIABLE FOR ANY DIRECT,
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
SOFTWARE.
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
12
README.md
12
README.md
|
@ -1,9 +1,9 @@
|
||||||
# pclish.utilities.jaydenmw
|
# 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
|
# Changelog 0.0.7-hotfix1a
|
||||||
- Install script now clones to /tmp/
|
- Fixed shebang (tells linux what interpreter to use)
|
||||||
- Install script no longer uses ~/.jaydenmw (now uses ~/.local/bin)
|
- Prompt shows system hostname instead of localhost (shell@hostname)
|
||||||
- Shell can now be ran with (./shell) instead of (python3 shell.py)
|
- Minor performance improvements
|
||||||
- Minor enhancements to Install script and shell
|
- Marked shell as executable
|
|
@ -1,5 +1,5 @@
|
||||||
# PCLISH - Python Command Line Shell
|
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# PCLISH - Python Command Line Shell
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -13,7 +13,7 @@ OS = platform.system()
|
||||||
HOST = socket.gethostname()
|
HOST = socket.gethostname()
|
||||||
VER = "PCLISH v0.0.6a-hotfix1a"
|
VER = "PCLISH v0.0.6a-hotfix1a"
|
||||||
|
|
||||||
PROMPT = "shell@localhost$ "
|
PROMPT = "shell@{}$ ".format(HOST)
|
||||||
|
|
||||||
def execute_command(command):
|
def execute_command(command):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue