我正在尝试在云外壳启动时安装代码服务器,因此,我创建了文件 .customize_environment
nano $HOME/.customize_environment
内容是:
echo "installing code server..."
curl -fsSL https://code-server.dev/install.sh | sh
PATH="$HOME/.local/bin:$PATH"
echo "code-server installed"
当云外壳启动时,它仍会打印默认消息
Welcome to Cloud Shell! Type "help" to get started.
Your Cloud Platform project in this session is set to
而不是installing code server...
, 并且不安装code-server
.