From 4c4638d89c43720a23fb4a8fffcafff495bce46b Mon Sep 17 00:00:00 2001 From: Shun Makino Date: Tue, 8 Oct 2024 03:12:00 +0900 Subject: [PATCH] apt: add install script for apt --- config/apt/install.sh | 25 +++++++++++++++++++++++++ scripts/setup-apt.bash | 9 +++++++++ scripts/setup.bash | 1 + 3 files changed, 35 insertions(+) create mode 100644 config/apt/install.sh create mode 100644 scripts/setup-apt.bash diff --git a/config/apt/install.sh b/config/apt/install.sh new file mode 100644 index 0000000..cce0be7 --- /dev/null +++ b/config/apt/install.sh @@ -0,0 +1,25 @@ +#!/bin/sh -e + +apt-get update +apt-get upgrade -y +apt-get install -y \ + autoconf \ + build-essential \ + vim \ + clang \ + clangd \ + clang-format \ + cmake \ + git \ + tig \ + gpg \ + jq \ + shellcheck \ + tmux \ + fzf \ + fd \ + trash-cli \ + unzip \ + wget \ + zip \ + zsh diff --git a/scripts/setup-apt.bash b/scripts/setup-apt.bash new file mode 100644 index 0000000..ec20816 --- /dev/null +++ b/scripts/setup-apt.bash @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -x +# shellcheck source=./scripts/common.bash +source "$(dirname "$0")/common.bash" + +command -v apt-get >/dev/null || exit 0 +[ -n "$SKIP_APT" ] && exit + +sudo /bin/sh "$REPO_DIR/config/apt/install.sh" diff --git a/scripts/setup.bash b/scripts/setup.bash index c8ec606..4b6526f 100644 --- a/scripts/setup.bash +++ b/scripts/setup.bash @@ -3,6 +3,7 @@ set -eux # shellcheck source=./scripts/common.bash source "$(dirname "$0")/common.bash" +/bin/bash "$CUR_DIR/setup-apt.bash" /bin/bash "$CUR_DIR/setup-homebrew.bash" /bin/bash "$CUR_DIR/setup-links.bash" /bin/bash "$CUR_DIR/setup-deno.bash"