forked from dotphiles/dotphiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·48 lines (41 loc) · 1.09 KB
/
setup.sh
File metadata and controls
executable file
·48 lines (41 loc) · 1.09 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
#! /bin/bash
if [ -f /etc/debian_version ]; then
sudo add-apt-repository -y ppa:ubuntuhandbook1/emacs
sudo add-apt-repository -y ppa:longsleep/golang-backports
sudo apt update
sudo apt install -y \
tmux \
fish \
jq \
emacs-nox \
curl \
dnsutils \
fzf \
silversearcher-ag \
net-tools \
libjansson4 \
libjansson-dev \
stow \
gh \
golang-go \
make \
htop \
ruby
fi
# Docker (skip if Docker Desktop is providing the CLI)
if ! command -v docker &> /dev/null; then
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker "$USER"
elif docker info 2>&1 | grep -q "Docker Desktop"; then
echo "Docker Desktop detected, skipping Docker Engine install"
fi
# Dagger
if ! command -v dagger &> /dev/null; then
curl -fsSL https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
fi
# Tmuxinator
if ! command -v tmuxinator &> /dev/null; then
sudo gem install tmuxinator
fi
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
stow -v --adopt -t "$HOME" -d "$SCRIPT_DIR" home