nercone-shell 0.3.3__py3-none-any.whl → 0.3.4__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 +5 -4
- {nercone_shell-0.3.3.dist-info → nercone_shell-0.3.4.dist-info}/METADATA +1 -1
- nercone_shell-0.3.4.dist-info/RECORD +6 -0
- nercone_shell-0.3.3.dist-info/RECORD +0 -6
- {nercone_shell-0.3.3.dist-info → nercone_shell-0.3.4.dist-info}/WHEEL +0 -0
- {nercone_shell-0.3.3.dist-info → nercone_shell-0.3.4.dist-info}/entry_points.txt +0 -0
nercone_shell/__main__.py
CHANGED
|
@@ -289,18 +289,19 @@ def main() -> int:
|
|
|
289
289
|
run_script(NERSH_AUTORUN)
|
|
290
290
|
if NERSH_HISTORY_PATH.is_file():
|
|
291
291
|
readline.read_history_file(NERSH_HISTORY_PATH)
|
|
292
|
-
RL_PROMPT_START_IGNORE = "\001" if NERSH_CONFIG.get("compatibility", {}).get("report_invisible_characters", False) else ""
|
|
293
|
-
RL_PROMPT_END_IGNORE = "\002" if NERSH_CONFIG.get("compatibility", {}).get("report_invisible_characters", False) else ""
|
|
294
|
-
color_accent = f"{RL_PROMPT_START_IGNORE}{ModernColor.color(NERSH_CONFIG.get('customization', {}).get('accent_color', 'blue'))}{RL_PROMPT_END_IGNORE}"
|
|
295
|
-
color_reset = f"{RL_PROMPT_START_IGNORE}{ModernColor.color('reset')}{RL_PROMPT_END_IGNORE}"
|
|
296
292
|
while True:
|
|
297
293
|
try:
|
|
294
|
+
RL_PROMPT_START_IGNORE = "\001" if NERSH_CONFIG.get("compatibility", {}).get("report_invisible_characters", False) else ""
|
|
295
|
+
RL_PROMPT_END_IGNORE = "\002" if NERSH_CONFIG.get("compatibility", {}).get("report_invisible_characters", False) else ""
|
|
296
|
+
color_accent = f"{RL_PROMPT_START_IGNORE}{ModernColor.color(NERSH_CONFIG.get('customization', {}).get('accent_color', 'blue'))}{RL_PROMPT_END_IGNORE}"
|
|
297
|
+
color_reset = f"{RL_PROMPT_START_IGNORE}{ModernColor.color('reset')}{RL_PROMPT_END_IGNORE}"
|
|
298
298
|
run_line(input(f"{color_accent}{getpass.getuser()}{color_reset}@{hostname} {color_accent}{shorten_path(ENVIRONMENT.get('PWD', f'{Path('~').expanduser()}'))}{color_reset}> "))
|
|
299
299
|
except KeyboardInterrupt:
|
|
300
300
|
print()
|
|
301
301
|
continue
|
|
302
302
|
except EOFError:
|
|
303
303
|
print()
|
|
304
|
+
readline.write_history_file(str(NERSH_HISTORY_PATH))
|
|
304
305
|
break
|
|
305
306
|
|
|
306
307
|
if __name__ == "__main__":
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
nercone_shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
nercone_shell/__main__.py,sha256=cKku5C7AMzGQAKSIrXwypZQJxHSXD_45guCyVWVVSus,10719
|
|
3
|
+
nercone_shell-0.3.4.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
|
|
4
|
+
nercone_shell-0.3.4.dist-info/entry_points.txt,sha256=STrGlvrPc2Rr5ktWVfiZ_5Lr7i1GcfOMvsTxL6768sw,55
|
|
5
|
+
nercone_shell-0.3.4.dist-info/METADATA,sha256=0qxHYaMt9YFliUR-s1AuAb4sLrH-qzimsvHHJy8nMUs,2600
|
|
6
|
+
nercone_shell-0.3.4.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|