mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Add cache on executables-in
This commit is contained in:
parent
f6e8910ce5
commit
456dbfb8bf
2 changed files with 24 additions and 0 deletions
23
news/cache-executables-in.rst
Normal file
23
news/cache-executables-in.rst
Normal file
|
@ -0,0 +1,23 @@
|
|||
**Added:**
|
||||
|
||||
* Added cache on finding executable files, to speedup command-not-found suggestions
|
||||
|
||||
**Changed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Deprecated:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Removed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Security:**
|
||||
|
||||
* <news item>
|
|
@ -802,6 +802,7 @@ def _executables_in_windows(path):
|
|||
return
|
||||
|
||||
|
||||
# @functools.lru_cache(128)
|
||||
def executables_in(path):
|
||||
"""Returns a generator of files in path that the user could execute. """
|
||||
if ON_WINDOWS:
|
||||
|
|
Loading…
Add table
Reference in a new issue