Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shell completion for 'ls' alias by setting '--icons=auto' #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hobodave
Copy link

@hobodave hobodave commented Nov 9, 2024

This PR updates the ls alias to use --icons=auto, fixing an issue with shell completion in some environments.

I'm using omakub with zsh, which I realize is outside the primary design scope. However, I noticed that the ls alias wasn't completing filesystem entries as expected. Instead, when tabbing after an empty ls command, it prompted options: always, auto, automatic, and never. These are the choices for the --icons display option in eza, as listed in its man page.

By setting --icons=auto, shell completions work as intended, displaying filesystem entries. While this issue may be specific to my environment, this change should be a no-op in other cases and ensures compatibility where needed.

- Updated 'ls' alias to use '--icons=auto' to resolve issue with shell
completions, which previously prompted options instead of completing
filesystem entries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants