Skip to content

Commit 3ede6bd

Browse files
committed
👾 pacman
1 parent f0646dd commit 3ede6bd

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

bin/dotfiles-project-deps

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if [[ ${OSTYPE} == "linux"* ]]; then
1212
DNF_DETECTED="$(command -v dnf 2>/dev/null)"
1313
YUM_DETECTED="$(command -v yum 2>/dev/null)"
1414
APT_GET_DETECTED="$(command -v apt-get 2>/dev/null)"
15+
PACMAN_DETECTED="$(command -v pacman 2>/dev/null)"
1516

1617
if [[ -n ${DNF_DETECTED} ]]; then
1718
echo "dnf detected, installing packages from Yumfile 📦"
@@ -22,6 +23,9 @@ if [[ ${OSTYPE} == "linux"* ]]; then
2223
elif [[ -n ${APT_GET_DETECTED} ]]; then
2324
echo "apt-get detected, installing packages from Aptfile 📦"
2425
PACKAGE_MANAGER="apt-get"
26+
elif [[ -n ${PACMAN_DETECTED} ]]; then
27+
echo "pacman detected, installing packages from Pacmanfile 📦"
28+
PACKAGE_MANAGER="pacman"
2529
else
2630
echo "dnf/yum/apt-get not detected, exiting ❌"
2731
exit 1
@@ -54,6 +58,8 @@ elif [[ ${PACKAGE_MANAGER} == "apt-get" ]]; then
5458
bash "${DOTFILES_DIR}/bin/aptfile" "${DOTFILES_DIR}/linux/Aptfile"
5559
elif [[ ${PACKAGE_MANAGER} == "brew" ]]; then
5660
brew bundle --file "${DOTFILES_DIR}/macos/Brewfile"
61+
elif [[ ${PACKAGE_MANAGER} == "pacman" ]]; then
62+
bash "${DOTFILES_DIR}/linux/Pacmanfile"
5763
fi
5864

5965
echo "Dependencies installed successfully 🎉"

linux/Pacmanfile

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
LINUX_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6+
DOTFILES_DIR="$(dirname "${LINUX_DIR}")"
7+
8+
if command -v pacman &>/dev/null; then
9+
PACKAGE_MANAGER="pacman"
10+
else
11+
echo "pacman not detected, exiting ❌"
12+
exit 1
13+
fi
14+
15+
##########################################################
16+
########################## CORE ##########################
17+
##########################################################
18+
19+
${PACKAGE_MANAGER} -Syu --noconfirm \
20+
dialog \
21+
git \
22+
curl \
23+
wget \
24+
gettext \
25+
cmake \
26+
unzip
27+
28+
###########################################################
29+
######################## UTILITIES ########################
30+
###########################################################
31+
32+
${PACKAGE_MANAGER} -Syu --noconfirm \
33+
bat \
34+
direnv \
35+
fzf \
36+
github-cli \
37+
git-lfs \
38+
grep \
39+
htop \
40+
jq \
41+
make \
42+
nano \
43+
python-pipx \
44+
ripgrep \
45+
tree \
46+
neovim
47+
48+
##########################################################
49+
#################### PYTHON + PYENV ######################
50+
##########################################################
51+
52+
${PACKAGE_MANAGER} -Syu --noconfirm \
53+
gcc \
54+
make \
55+
patch \
56+
zlib \
57+
bzip2 \
58+
bzip2 \
59+
readline \
60+
sqlite \
61+
sqlite \
62+
openssl \
63+
tk \
64+
libffi \
65+
xz

0 commit comments

Comments
 (0)