-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·76 lines (52 loc) · 2.19 KB
/
setup.sh
File metadata and controls
executable file
·76 lines (52 loc) · 2.19 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env bash
# Hyprland Setup
if [[ $1 == "--hyprland-default" ]]; then
# Sync dotfiles
stow files --adopt --ignore=homebrew
# Prepare directories
mkdir -p ~/.local/bin/
mkdir -p ~/.local/share/fonts/
# Install zplug (ZSH Plugin Manager)
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
# Install tpm (Tmux Plugin Manager)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Download & Install font
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip
unzip JetBrainsMono.zip -d ~/.local/share/fonts/
rm ./JetBrainsMono.zip
echo "source ~/.config/zshrc/zshrc" >~/.zshrc
echo "source-file ~/.config/tmux/conf" >~/.tmux.conf
cd $HOME
echo "Installation Completed!"
elif [[ $1 == "--macos" ]]; then
# Sync dotfiles
stow files --adopt --ignore=hyprland --ignore=waybar --ignore=wlogoout
# Prepare directories
mkdir -p ~/.local/bin/
# Install zplug (ZSH Plugin Manager)
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
# Install tpm (Tmux Plugin Manager)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Homebrew pkgs
xargs brew install <./files/homebrew/leaves.txt
echo "source ~/.config/zshrc/zshrc" >~/.zshrc
echo "source-file ~/.config/tmux/conf" >~/.tmux.conf
cd $HOME
echo "Installation Completed!"
elif [[ $1 == "--shell-only" ]]; then
# Sync dotfiles
stow files --adopt --ignore=homebrew --ignore=hyprland --ignore=waybar --ignore=wlogoout --ignore=kitty --ignore=foot
# Prepare directories
mkdir -p ~/.local/bin/
# Install zplug (ZSH Plugin Manager)
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
# Install tpm (Tmux Plugin Manager)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo "source ~/.config/zshrc/zshrc" >~/.zshrc
echo "source-file ~/.config/tmux/conf" >~/.tmux.conf
cd $HOME
echo "Installation Completed!"
else
echo "Invalid argument. Try: ./setup.sh --hyprland-default || ./setup.sh --shell-only || ./setup.sh --macos"
exit 1
fi