Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp/CONFIG/nc-init.sh')
-rw-r--r--bin/ncp/CONFIG/nc-init.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ncp/CONFIG/nc-init.sh b/bin/ncp/CONFIG/nc-init.sh
index 9acfdbb3..0df7c3c8 100644
--- a/bin/ncp/CONFIG/nc-init.sh
+++ b/bin/ncp/CONFIG/nc-init.sh
@@ -181,6 +181,12 @@ EOF
ncc config:system:set overwrite.cli.url --value="https://nextcloudpi/"
ncc config:system:set trusted_domains "${TRUSTED_DOMAINS[nc_domain]}" --value="nextcloudpi"
+ # bash completion for ncc
+ apt_install bash-completion
+ ncc _completion -g --shell-type bash -p ncc | sed 's|/var/www/nextcloud/occ|ncc|g' > /usr/share/bash-completion/completions/ncp
+ echo ". /etc/bash_completion" >> /etc/bash.bashrc
+ echo ". /usr/share/bash-completion/completions/ncp" >> /etc/bash.bashrc
+
# TODO temporary workaround for https://github.com/nextcloud/server/pull/13358
ncc -n db:convert-filecache-bigint
ncc db:add-missing-indices