nercone-shell 0.2.0__py3-none-any.whl → 0.2.2__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 CHANGED
@@ -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():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nercone-shell
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Modern shell for Developers
5
5
  Author: Nercone
6
6
  Author-email: Nercone <nercone@diamondgotcat.net>
@@ -0,0 +1,6 @@
1
+ nercone_shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ nercone_shell/__main__.py,sha256=Ru2-HtdgAq8qJr7UkFykzwH16D0ep2qaEHHODq6vUI8,9567
3
+ nercone_shell-0.2.2.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
4
+ nercone_shell-0.2.2.dist-info/entry_points.txt,sha256=STrGlvrPc2Rr5ktWVfiZ_5Lr7i1GcfOMvsTxL6768sw,55
5
+ nercone_shell-0.2.2.dist-info/METADATA,sha256=5tSIq4T9Zml0iB4jYhWvPqikSW_jB_0JSsf89y8s0_c,465
6
+ nercone_shell-0.2.2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- nercone_shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- nercone_shell/__main__.py,sha256=ezrUfNWHW9AOfQ2OfcKM7VfpXSQdNqikncQUNDSHPGM,9262
3
- nercone_shell-0.2.0.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
4
- nercone_shell-0.2.0.dist-info/entry_points.txt,sha256=STrGlvrPc2Rr5ktWVfiZ_5Lr7i1GcfOMvsTxL6768sw,55
5
- nercone_shell-0.2.0.dist-info/METADATA,sha256=1BQ0BMt8o-4YGje_C5MoZpaf8kfIYnqCZ6ZMTaoNyJs,465
6
- nercone_shell-0.2.0.dist-info/RECORD,,