climc.sh 698 B

12345678910111213141516171819202122
  1. export PATH=/opt/yunion/bin:$PATH
  2. if [ -f /etc/profile.d/bash_completion.sh ]; then
  3. source /etc/profile.d/bash_completion.sh
  4. fi
  5. test -f /etc/yunion/rcadmin && source /etc/yunion/rcadmin
  6. if [ -n "$OS_AUTH_TOKEN" ]; then
  7. test -n "$OS_USERNAME" && unset OS_USERNAME
  8. test -n "$OS_PASSWORD" && unset OS_PASSWORD
  9. test -n "$OS_DOMAIN_NAME" && unset OS_DOMAIN_NAME
  10. test -n "$OS_ACCESS_KEY" && unset OS_ACCESS_KEY
  11. test -n "$OS_SECRET_KEY" && unset OS_SECRET_KEY
  12. fi
  13. source <(climc --completion bash)
  14. source <(kubectl completion bash)
  15. echo "Welcome to Cloud Shell :-) You may execute climc and other command tools in this shell."
  16. echo "Please exec 'climc' to get started"
  17. echo ""