From 62f962157e574c84ab56a18526d4325238669294 Mon Sep 17 00:00:00 2001 From: David Andreoletti Date: Thu, 11 Apr 2024 01:11:12 +0800 Subject: [PATCH] bootstrap: install vscode with extensions --- install/bootstrap_apps_gui.sh | 13 +++++++++++-- install/bootstrap_fedora.sh | 1 + install/bootstrap_macos.sh | 1 + install/common/shell/vscode.sh | 6 ++++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 install/common/shell/vscode.sh diff --git a/install/bootstrap_apps_gui.sh b/install/bootstrap_apps_gui.sh index 3ecb169..834ba69 100755 --- a/install/bootstrap_apps_gui.sh +++ b/install/bootstrap_apps_gui.sh @@ -171,8 +171,17 @@ if is_profile_admin_or_similar; then # VSCode - #is_macos && homebrew_brew_cask_install "visual-studio-code" - #is_fedora && fedora_dnf_install "code" + is_macos && homebrew_brew_cask_install "visual-studio-code" + is_fedora && fedora_dnf_install "code" + + # VSCode Extensions + vscode_install_extension "ms-vscode-remote.remote-ssh" # Remote SSH Extension: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh + vscode_install_extension "eamodio.gitlens" # Git Explorater Extension + vscode_install_extension "ms-python.python" # Python Extension + vscode_install_extension "ms-toolsai.jupyter" # Jupyter Extension + vscode_install_extension "ms-toolsai.datawrangler" # Data wrangler for Jupyter Notebook + vscode_install_extension "ms-azuretools.vscode-docker" # Docker Extension + vscode_install_extension "continue.continue" # LLM autopilot # Ngrok is_macos && homebrew_brew_cask_install "ngrok" diff --git a/install/bootstrap_fedora.sh b/install/bootstrap_fedora.sh index 48553f6..1e320c5 100644 --- a/install/bootstrap_fedora.sh +++ b/install/bootstrap_fedora.sh @@ -30,6 +30,7 @@ source "${BOOSTRAP_DIR}/common/shell/user_password.sh" source "${BOOSTRAP_DIR}/common/shell/container.sh" source "${BOOSTRAP_DIR}/common/shell/systemd.sh" source "${BOOSTRAP_DIR}/common/shell/ci.sh" +source "${BOOSTRAP_DIR}/common/shell/vscode.sh" source "${BOOSTRAP_DIR}/fedora/shell/sudoers.sh" source "${BOOSTRAP_DIR}/fedora/shell/vnc.sh" source "${BOOSTRAP_DIR}/fedora/shell/ssh.sh" diff --git a/install/bootstrap_macos.sh b/install/bootstrap_macos.sh index b55dd9e..b8796a8 100644 --- a/install/bootstrap_macos.sh +++ b/install/bootstrap_macos.sh @@ -29,6 +29,7 @@ source "${BOOSTRAP_DIR}/common/shell/user_password.sh" source "${BOOSTRAP_DIR}/common/shell/container.sh" source "${BOOSTRAP_DIR}/common/shell/systemd.sh" source "${BOOSTRAP_DIR}/common/shell/ci.sh" +source "${BOOSTRAP_DIR}/common/shell/vscode.sh" source "${BOOSTRAP_DIR}/macosx/shell/sudoers.sh" source "${BOOSTRAP_DIR}/macosx/shell/xcode.sh" source "${BOOSTRAP_DIR}/macosx/shell/dmg.sh" diff --git a/install/common/shell/vscode.sh b/install/common/shell/vscode.sh new file mode 100644 index 0000000..d00d8d3 --- /dev/null +++ b/install/common/shell/vscode.sh @@ -0,0 +1,6 @@ +vscode_install_extension() { + local name="$1" + + vscode="$(command which code)" + $vscode --install-extension "$name" +}