-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_once_before_install-packages-ubuntu.sh.tmpl
More file actions
52 lines (46 loc) · 1.11 KB
/
run_once_before_install-packages-ubuntu.sh.tmpl
File metadata and controls
52 lines (46 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{{- if .ubuntu -}}
#!{{ lookPath "bash" }}
# install packages
echo "Installing packages..."
PACKAGES_NEEDED="\
build-essential \
procps \
curl \
file \
git"
if ! dpkg -s ${PACKAGES_NEEDED} > /dev/null 2>&1; then
if [ ! -d "/var/lib/apt/lists" ] || [ "$(ls /var/lib/apt/lists/ | wc -l)" = "0" ]; then
sudo apt-get update
fi
sudo apt-get -y -q install ${PACKAGES_NEEDED}
fi
# Install Homebrew
command -v brew >/dev/null 2>&1 || \
(echo '🍺 Installing Homebrew' && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)")
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/bethany/.zprofile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew bundle --no-lock --file=/dev/stdin <<EOF
tap "homebrew/bundle"
tap "homebrew/core"
tap "homebrew/services"
brew "1password-cli"
brew "bash"
brew "bat"
brew "bitwarden-cli"
brew "docker"
brew "fzf"
brew "gh"
brew "go"
brew "jq"
brew "neovim"
brew "python"
brew "ripgrep"
brew "ruby"
brew "tmux"
brew "wget"
brew "nvm"
brew "zplug"
brew "zsh"
EOF
gh auth login
{{end -}}