From 46049b148e8796225264c15dfc54a42a314c1977 Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Thu, 20 Oct 2022 09:30:18 +0200 Subject: [PATCH] feat(Nextcloud): install bash completion for ncc --- nextcloud-installer.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nextcloud-installer.sh b/nextcloud-installer.sh index a812b75..c41931c 100644 --- a/nextcloud-installer.sh +++ b/nextcloud-installer.sh @@ -257,6 +257,11 @@ function install_ncc exec php /var/www/virtual/\$USER/html/occ "\$@" end_of_content chmod u+x ~/bin/ncc + + ncc _completion --generate-hook --program=ncc > ~/_nextcloud_completion + echo "source \$HOME/_nextcloud_completion" >> ~/.bash_profile + # shellcheck source=/dev/null + source ~/.bash_profile } function install_nextcloud_updater