-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Auto tab completion for bash #35450
Labels
Comments
RonaldBarnes
added
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
enhancement
labels
Nov 27, 2022
6 tasks
Example
|
Example
|
Example
|
Would also love to see this! |
joshtrichards
added
3. to review
Waiting for reviews
and removed
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
labels
Oct 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use GitHub
Is your feature request related to a problem? Please describe.
Having bash tab/auto completion for
occ
would make administration much easier.The current method is not discoverable (multiple NextCloud admins had no idea it existed), and requires fiddling with file ownership / permissions. #14309, stecman/symfony-console-completion#71.
Describe the solution you'd like
A method of invoking bash tab completion that is obvious and works like other bash completions.
Describe alternatives you've considered
A script,
bash-add-alias.sh
that willocc
, etc.)alias occ='sudo --user www-data php /var/www/nextcloud/occ'
~/.bash_aliases
for persistenceSUDO_USER
's.bash_aliases
for persistencecomplete.occ
script to enable bash tab completioncomplete.occ
script to directory so it's run each time bash is started/etc/bash_completion.d/
)/etc/bash_completion.d/complete.occ
occ
is the same as the web server user detectedAdditional context
Pull request is ready for testing. Needs better OS agnostic support (i.e. different web server user names and bash_completion.d directory locations).
The text was updated successfully, but these errors were encountered: