-
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 (42 loc) · 991 Bytes
/
setup.sh
File metadata and controls
executable file
·48 lines (42 loc) · 991 Bytes
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
source /etc/os-release
DOTFILES_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
if [[ "$ID" == "arch" ]]; then
echo "Detected Arch Linux"
echo "install packages"
sudo pacman -Syu --noconfirm
sudo pacman -S --noconfirm \
atuin \
git \
base-devel \
zsh \
ghostty \
tmux \
neovim \
python-pip \
python-neovim \
ripgrep \
fd \
fzf \
bat \
lsd \
lazygit \
luarocks \
texlive-bin \
tree-sitter-cli \
imagemagick \
ghostscript \
stow \
starship
fi
if [[ ! -d "$HOME/.config/share/nerd-fonts" ]]; then
echo "Installing Nerd Fonts"
mkdir -p "$HOME/.config/share/"
git clone --depth 1 git@github.com:ryanoasis/nerd-fonts ~/.local/share/nerd-fonts
fi
echo "Installing Fira Code Nerd Font"
~/.local/share/nerd-fonts/install.sh FiraCode
ln -s "$DOTFILES_DIR/zshenv" "$HOME/.zshenv"
pushd "$DOTFILES_DIR" >/dev/null 2>&1 || true
stow .
popd >/dev/null 2>&1 || true