holzschu / holzschu/a-shell

Autocomplete of commands in current directory

Open
#554 5 comments 0 reactions 0 assignees View on GitHub
fix committed
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

I am wondering why my executable scripts are not appearing in the autocomplete list.

I can tab to get autocomplete for general executables or filenames in the current directory. But if I have a local python script it does not appear in the autocomplete.

Here is a file in my current directory that does not appear in the list.

`[~Documents]$ ls -alh stats_and_validate.py
-rwxr-xr-x@ 1 mobile mobile 9.5K Jan 25 13:11 stats_and_validate.py`

I can run it my typing in the name, so it appears to be executable via just the name, without python in front. It DOES appear in the list of arguments to the executable if you put "python st" and then hit tab for autocomplete.

Looking at the code it might use the PATH env variable.
https://github.com/holzschu/a-shell/blob/dc86fd7dec87e36ff61ac3c0f06243b0086facec/a-Shell/SceneDelegate.swift#L2679-L2698

I tried adding the current directory to the local path (maybe not correctly) and it still did not work.

Thanks for any suggestions people can give.

P.S. I really love a-shell, its a great tool that is just so handy.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.