nercone-shell 0.3.1__py3-none-any.whl → 0.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nercone_shell/__main__.py +8 -2
- {nercone_shell-0.3.1.dist-info → nercone_shell-0.3.3.dist-info}/METADATA +3 -2
- nercone_shell-0.3.3.dist-info/RECORD +6 -0
- nercone_shell-0.3.1.dist-info/RECORD +0 -6
- {nercone_shell-0.3.1.dist-info → nercone_shell-0.3.3.dist-info}/WHEEL +0 -0
- {nercone_shell-0.3.1.dist-info → nercone_shell-0.3.3.dist-info}/entry_points.txt +0 -0
nercone_shell/__main__.py
CHANGED
|
@@ -8,17 +8,23 @@
|
|
|
8
8
|
|
|
9
9
|
import os
|
|
10
10
|
import sys
|
|
11
|
+
import platform
|
|
12
|
+
import subprocess
|
|
11
13
|
import re
|
|
12
14
|
import json
|
|
13
15
|
import glob
|
|
14
16
|
import shutil
|
|
15
17
|
import getpass
|
|
16
18
|
import readline
|
|
17
|
-
import subprocess
|
|
18
19
|
from pathlib import Path
|
|
19
20
|
from nercone_modern.color import ModernColor
|
|
20
21
|
from importlib.metadata import version, PackageNotFoundError
|
|
21
22
|
|
|
23
|
+
try:
|
|
24
|
+
hostname = os.uname().nodename
|
|
25
|
+
except AttributeError:
|
|
26
|
+
hostname = platform.uname().node
|
|
27
|
+
|
|
22
28
|
try:
|
|
23
29
|
VERSION: str = version("nercone-shell")
|
|
24
30
|
except PackageNotFoundError:
|
|
@@ -289,7 +295,7 @@ def main() -> int:
|
|
|
289
295
|
color_reset = f"{RL_PROMPT_START_IGNORE}{ModernColor.color('reset')}{RL_PROMPT_END_IGNORE}"
|
|
290
296
|
while True:
|
|
291
297
|
try:
|
|
292
|
-
run_line(input(f"{color_accent}{getpass.getuser()}{color_reset}@{
|
|
298
|
+
run_line(input(f"{color_accent}{getpass.getuser()}{color_reset}@{hostname} {color_accent}{shorten_path(ENVIRONMENT.get('PWD', f'{Path('~').expanduser()}'))}{color_reset}> "))
|
|
293
299
|
except KeyboardInterrupt:
|
|
294
300
|
print()
|
|
295
301
|
continue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: nercone-shell
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Modern shell for Developers
|
|
5
5
|
Author: Nercone
|
|
6
6
|
Author-email: Nercone <nercone@diamondgotcat.net>
|
|
@@ -9,11 +9,12 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Dist: nercone-modern
|
|
12
|
+
Requires-Dist: pyreadline3 ; sys_platform == 'win32'
|
|
12
13
|
Requires-Python: >=3.8
|
|
13
14
|
Description-Content-Type: text/markdown
|
|
14
15
|
|
|
15
16
|
|
|
16
|
-
<img width="
|
|
17
|
+
<img width="1240" alt="Screenshot" src="https://github.com/user-attachments/assets/e4f2ea8d-9ec0-465d-8d49-9bd7763e0283" />
|
|
17
18
|
|
|
18
19
|
# Nersh (Nercone Shell)
|
|
19
20
|
Modern shell for Developers
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
nercone_shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
nercone_shell/__main__.py,sha256=ju5tluuXGhr0Bf1IKcWn43bIcRRr82myZ6kVerx4ncU,10622
|
|
3
|
+
nercone_shell-0.3.3.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
|
|
4
|
+
nercone_shell-0.3.3.dist-info/entry_points.txt,sha256=STrGlvrPc2Rr5ktWVfiZ_5Lr7i1GcfOMvsTxL6768sw,55
|
|
5
|
+
nercone_shell-0.3.3.dist-info/METADATA,sha256=qYuso_xPNXn2aQ1MFPfNhyH8p-_c2K73-vXC5S-rkn8,2600
|
|
6
|
+
nercone_shell-0.3.3.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
nercone_shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
nercone_shell/__main__.py,sha256=uzWfnaODXLVjJB3mSWD8e2kvz91u0mc-Ic5_0WWZv_I,10528
|
|
3
|
-
nercone_shell-0.3.1.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
|
|
4
|
-
nercone_shell-0.3.1.dist-info/entry_points.txt,sha256=STrGlvrPc2Rr5ktWVfiZ_5Lr7i1GcfOMvsTxL6768sw,55
|
|
5
|
-
nercone_shell-0.3.1.dist-info/METADATA,sha256=21XVSHMln4glpRxRWmMmkFKMUn8efcv6EI6XC4msfYQ,2547
|
|
6
|
-
nercone_shell-0.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|