nercone-shell 0.2.0__tar.gz → 0.2.2__tar.gz
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-0.2.0 → nercone_shell-0.2.2}/PKG-INFO +1 -1
- {nercone_shell-0.2.0 → nercone_shell-0.2.2}/pyproject.toml +1 -1
- {nercone_shell-0.2.0 → nercone_shell-0.2.2}/src/nercone_shell/__main__.py +8 -0
- {nercone_shell-0.2.0 → nercone_shell-0.2.2}/README.md +0 -0
- {nercone_shell-0.2.0 → nercone_shell-0.2.2}/src/nercone_shell/__init__.py +0 -0
|
@@ -254,6 +254,14 @@ def main() -> int:
|
|
|
254
254
|
else:
|
|
255
255
|
readline.parse_and_bind("tab: complete")
|
|
256
256
|
readline.set_completer_delims(' \t\n;')
|
|
257
|
+
for p in NERSH_CONFIG.get("autoruns"):
|
|
258
|
+
if Path(p).is_file():
|
|
259
|
+
with Path(p).open("r") as f:
|
|
260
|
+
run_script(f.read())
|
|
261
|
+
elif Path(p).exists():
|
|
262
|
+
print(f"(autorun failed) Not a file: {p}")
|
|
263
|
+
else:
|
|
264
|
+
print(f"(autorun failed) Not exist: {p}")
|
|
257
265
|
if NERSH_AUTORUN:
|
|
258
266
|
run_script(NERSH_AUTORUN)
|
|
259
267
|
if NERSH_HISTORY_PATH.is_file():
|
|
File without changes
|
|
File without changes
|