Merge pull request #18719 from zexi/automated-cherry-pick-of-#18718-upstream-master

Automated cherry pick of #18718: fix(climc): bash completion is not working
This commit is contained in:
Zexi Li
2023-11-17 12:33:28 +08:00
committed by GitHub
@@ -1,8 +1,13 @@
export PATH=/opt/yunion/bin:$PATH
if [ -f /etc/profile.d/bash_completion.sh ]; then
source /etc/profile.d/bash_completion.sh
fi
test -f /etc/yunion/rcadmin && source /etc/yunion/rcadmin
source <(climc --completion bash)
source <(kubectl completion bash)
echo "Welcome to Cloud Shell :-) You may execute climc and other command tools in this shell."
echo "Please exec 'climc' to get started"