diff --git a/config/apt/install.sh b/config/apt/install.sh new file mode 100644 index 0000000..ea86cda --- /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-find \ + 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"