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

doesn't work for ls --group-directories-first #48

Open
rr0gi opened this issue Sep 6, 2024 · 1 comment
Open

doesn't work for ls --group-directories-first #48

rr0gi opened this issue Sep 6, 2024 · 1 comment

Comments

@rr0gi
Copy link

rr0gi commented Sep 6, 2024

$ alias zz='ls --group-directories-first'
$ complete -F _complete_alias zz
$ zz path_to_file<tab>
@rr0gi
Copy link
Author

rr0gi commented Sep 11, 2024

more precisely - it doesn't work if it is the last option in the aliased command, witness:

$ alias short='ls --group-directories-first -hlA'
$ alias long='ls -hlA --group-directories-first'
$ complete -F _complete_alias short
$ complete -F _complete_alias long

short ~/.bashr<Tab> completes, while long ~/.bashr<Tab> doesn't

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

No branches or pull requests

1 participant