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
|
||||
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.
|
||||
|
|
12
README.md
12
README.md
|
@ -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
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue