xmyshell 0.1.1__tar.gz → 0.1.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.
- {xmyshell-0.1.1/xmyshell.egg-info → xmyshell-0.1.2}/PKG-INFO +1 -1
- {xmyshell-0.1.1 → xmyshell-0.1.2}/pyproject.toml +1 -1
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/completer.py +7 -4
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/init.py +4 -1
- {xmyshell-0.1.1 → xmyshell-0.1.2/xmyshell.egg-info}/PKG-INFO +1 -1
- {xmyshell-0.1.1 → xmyshell-0.1.2}/LICENSE +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/README.md +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/setup.cfg +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/__init__.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/__main__.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/data/commands.json +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/environment.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/kernel.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/keybindings.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/lexer.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/main.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/meta.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/themes.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell/utils.py +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell.egg-info/SOURCES.txt +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell.egg-info/dependency_links.txt +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell.egg-info/entry_points.txt +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell.egg-info/requires.txt +0 -0
- {xmyshell-0.1.1 → xmyshell-0.1.2}/xmyshell.egg-info/top_level.txt +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import sys
|
|
2
3
|
import re
|
|
3
4
|
import time
|
|
4
5
|
import json
|
|
@@ -349,8 +350,9 @@ class ShellCompleter(Completer):
|
|
|
349
350
|
if not lstripped.endswith(parts[-1]):
|
|
350
351
|
parts.append("")
|
|
351
352
|
elif len(parts) == 2:
|
|
352
|
-
|
|
353
|
-
|
|
353
|
+
mods = set(sys.builtin_module_names)
|
|
354
|
+
mods |= {m.name for m in pkgutil.iter_modules()}
|
|
355
|
+
for name in sorted(mods):
|
|
354
356
|
if not name.startswith(parts[-1]):
|
|
355
357
|
continue
|
|
356
358
|
if name.startswith("_"):
|
|
@@ -372,8 +374,9 @@ class ShellCompleter(Completer):
|
|
|
372
374
|
if not lstripped.endswith(parts[-1]):
|
|
373
375
|
parts.append("")
|
|
374
376
|
elif len(parts) == 2:
|
|
375
|
-
|
|
376
|
-
|
|
377
|
+
mods = set(sys.builtin_module_names)
|
|
378
|
+
mods |= {m.name for m in pkgutil.iter_modules()}
|
|
379
|
+
for name in sorted(mods):
|
|
377
380
|
if not name.startswith(parts[-1]):
|
|
378
381
|
continue
|
|
379
382
|
if name.startswith("_"):
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
-
import
|
|
2
|
+
import sys
|
|
3
3
|
from .environment import load_init_namespace, init_environ
|
|
4
4
|
from .themes import load_theme, THEME_DEFAULT
|
|
5
5
|
from .completer import completer_init
|
|
@@ -8,6 +8,9 @@ from .kernel import xmyshell_source
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
def xmyshell_load() -> None:
|
|
11
|
+
if "" not in sys.path:
|
|
12
|
+
sys.path.insert(0, "")
|
|
13
|
+
|
|
11
14
|
load_init_namespace()
|
|
12
15
|
completer_init()
|
|
13
16
|
load_theme(THEME_DEFAULT)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|