]> begriffs open source - cmsis/blob - .devcontainer/ubuntu-22.04/postCreateCommand.sh
Update infrastructure and reference container
[cmsis] / .devcontainer / ubuntu-22.04 / postCreateCommand.sh
1 #!/bin/bash
2
3 echo "Installing oh-my-bash ..."
4 bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" --unattended
5 sed -i 's/OSH_THEME="font"/OSH_THEME="powerline"/' ~/.bashrc
6
7 echo "Bootstrapping vcpkg ..."
8 # shellcheck source=/dev/null
9 . <(curl -sL https://aka.ms/vcpkg-init.sh)
10 grep -q "vcpkg-init" ~/.bashrc || echo -e "\n# Initialize vcpkg\n. ~/.vcpkg/vcpkg-init" >> ~/.bashrc && \
11 pushd "$(dirname "$0")" || exit 
12 vcpkg x-update-registry --all
13 vcpkg activate
14 popd || exit