-
-
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
Bash completion #35451
base: master
Are you sure you want to change the base?
Bash completion #35451
Commits on Mar 1, 2023
-
Auto TAB completion for bash using alias for occ.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 1d5e938 - Browse repository at this point
Copy the full SHA 1d5e938View commit details -
Updated copyright per Contribution guidelines.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 18f445d - Browse repository at this point
Copy the full SHA 18f445dView commit details -
Resolved requested changes to PR.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 102052e - Browse repository at this point
Copy the full SHA 102052eView commit details -
Resolved one more comment deletion, per PR change request(s).
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 8e87648 - Browse repository at this point
Copy the full SHA 8e87648View commit details -
Changed getHttpdUser to searchHttpdUser through-out, per PR change re…
…quests. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 56dfa43 - Browse repository at this point
Copy the full SHA 56dfa43View commit details -
Revised per pull request comment nextcloud#35451 (comment) as the 'co…
…mplete' built-in handles de-duplication and sortation. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 8de4ac1 - Browse repository at this point
Copy the full SHA 8de4ac1View commit details -
Reset COMP_WORDBREAKS to original value when finished.
Add space after completed word unless it contains a colon. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 8e99a60 - Browse repository at this point
Copy the full SHA 8e99a60View commit details -
Add quotes around COMP_WORDBREAKS, else unexpected behaviour.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 2d091e2 - Browse repository at this point
Copy the full SHA 2d091e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aa4940 - Browse repository at this point
Copy the full SHA 2aa4940View commit details -
Added more web server user names.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 2751eaa - Browse repository at this point
Copy the full SHA 2751eaaView commit details -
Add apps list to completions. Do not offer a switch as completion if it has already been chosen. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 8ea5a98 - Browse repository at this point
Copy the full SHA 8ea5a98View commit details -
Web server lighthttp user name is fixed to lighttpd.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 7825a8f - Browse repository at this point
Copy the full SHA 7825a8fView commit details -
Added Usage: and remove unused debugging.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for aed5edd - Browse repository at this point
Copy the full SHA aed5eddView commit details -
Added user_id, app, lang, and file system completions.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for c3a8470 - Browse repository at this point
Copy the full SHA c3a8470View commit details -
Changed all functions to have '_occ_' prefix.
Tidied up 'compopt' settings. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for d9ae83d - Browse repository at this point
Copy the full SHA d9ae83dView commit details -
Specify type of entity being 'unset'.
Run 'unset bash_aliases' to remove the function from environment. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 3955590 - Browse repository at this point
Copy the full SHA 3955590View commit details -
Changed ownership test to file config/config.php, not ./occ
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for e8e8e78 - Browse repository at this point
Copy the full SHA e8e8e78View commit details -
Added colour to filename when ownership mis-match.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 7eaeb9d - Browse repository at this point
Copy the full SHA 7eaeb9dView commit details -
If no ~/.bash_aliases, then offer to create /etc/profile.d/occ instead.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 0d650f7 - Browse repository at this point
Copy the full SHA 0d650f7View commit details -
Offer to add alias to /etc/bash.bashrc as well as ~/.bash_aliases
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 6ddaf0f - Browse repository at this point
Copy the full SHA 6ddaf0fView commit details -
Option to add completion script to ~/.local/share/bash-completion/com…
…pletions. When copying complete.occ, target file is called 'occ'. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for efa1dc3 - Browse repository at this point
Copy the full SHA efa1dc3View commit details -
If no ~/.bash_aliases, offer to append to ~/.bashrc instead of /etc/b…
…ash.bashrc Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 3fa70e7 - Browse repository at this point
Copy the full SHA 3fa70e7View commit details -
Updated documentation / usage.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for b23f709 - Browse repository at this point
Copy the full SHA b23f709View commit details -
Added more web server user names, per https://docs.nextcloud.com/serv…
…er/22/admin_manual/configuration_server/occ_command.html#http-user-label Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for b9a4081 - Browse repository at this point
Copy the full SHA b9a4081View commit details -
Added @author, reformatted @copyright.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 161c000 - Browse repository at this point
Copy the full SHA 161c000View commit details -
Refactored: removed all global persistence options, stores alias to ~…
…/.bash_aliases or ~/.bashrc and completion file to ~/.local/share/bash-completion/completions Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for f720c72 - Browse repository at this point
Copy the full SHA f720c72View commit details -
Changed completion script destination directory to /etc/bash_completi…
…on.d/ Renamed completion script occ.bash Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for f6bbefa - Browse repository at this point
Copy the full SHA f6bbefaView commit details -
Renamed complete.occ to occ.bash
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for a3c98c0 - Browse repository at this point
Copy the full SHA a3c98c0View commit details -
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 23fb524 - Browse repository at this point
Copy the full SHA 23fb524View commit details -
Restored chown and chmod on /etc/bash_completion.d/occ.bash
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for c78dc3c - Browse repository at this point
Copy the full SHA c78dc3cView commit details -
NextCloud to Nextcloud, camel case to snake case: phpFound to php_found
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 0faf097 - Browse repository at this point
Copy the full SHA 0faf097View commit details -
Switched back to ~/.local/share/bash-completion/completions/ as the t…
…arget for occ.bash completion script. This will 'lazy load' the file once user first tries to use it. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 7eb851a - Browse repository at this point
Copy the full SHA 7eb851aView commit details -
Cleaned up TRAPs; works better with 'read' aka 'readline'.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 191e1d9 - Browse repository at this point
Copy the full SHA 191e1d9View commit details -
Added support for 'occ config:...': handles 'app' and 'system', 'get'…
… and 'set'. If an accepted argument is 'file', handles that as well as 'app', 'user_id', and 'lang'. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 4b302d1 - Browse repository at this point
Copy the full SHA 4b302d1View commit details -
Option to regenerate alias if existing one found (helpful if multiple…
… Nextcloud instances installed). Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 653ded6 - Browse repository at this point
Copy the full SHA 653ded6View commit details -
Consistent use of double vs single quotes.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for cfb1720 - Browse repository at this point
Copy the full SHA cfb1720View commit details -
Changed target for occ.bash to user's ~/.local/share/bash-completion/…
…completions from /etc/bash_completion.d/ -- overlooked it earlier. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 525f737 - Browse repository at this point
Copy the full SHA 525f737View commit details -
Allow occ.bash to operate from multiple aliases for admins with multi…
…ple Nextcloud instances per machine. Each instance should have its own alias. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for f53b3d6 - Browse repository at this point
Copy the full SHA f53b3d6View commit details -
Check for uid as well as user_id (dav:list-calendars: uid; files-scan…
…: user_id). Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 8be0fbc - Browse repository at this point
Copy the full SHA 8be0fbcView commit details -
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 0074f5b - Browse repository at this point
Copy the full SHA 0074f5bView commit details -
Changed mode to non-executable: must be sourced for alias to persist …
…after script finishes. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for a8248da - Browse repository at this point
Copy the full SHA a8248daView commit details -
Renamed script to more descriptive name and updated internal usage.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 295dfc7 - Browse repository at this point
Copy the full SHA 295dfc7View commit details -
Handle 'dav:move-calendar name sourceuid destinationuid'.
Must fetch all user names before completing 'name' - which is a calendar name, not a user name. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 06761f4 - Browse repository at this point
Copy the full SHA 06761f4View commit details -
Added two script files to build/files-checker.php
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 0f4dcb1 - Browse repository at this point
Copy the full SHA 0f4dcb1View commit details -
Changed references to 'bash-add-alias.sh' to 'bash-tab-completion-occ…
….sh'. Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for 5b6b3c3 - Browse repository at this point
Copy the full SHA 5b6b3c3View commit details -
Indentation was off; spaces not tabs.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for a9eba83 - Browse repository at this point
Copy the full SHA a9eba83View commit details -
Updated documentation for multi-host, multi-alias environments.
Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
Configuration menu - View commit details
-
Copy full SHA for aa0962d - Browse repository at this point
Copy the full SHA aa0962dView commit details