-
Notifications
You must be signed in to change notification settings - Fork 7
/
old-install.sh
118 lines (90 loc) · 2.6 KB
/
old-install.sh
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/zsh
# add arm64 to boot flags
nvram boot-arg '-arm64e_preview_abi' # reboot computer afterwards
echo "Installing commandline tools..."
xcode-select --install
# Homebrew
## Install
echo "Installing Brew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew analytics off
## Taps
echo "Tapping Brew..."
brew tap FelixKratz/formulae
brew tap koekeishiya/formulae
# Display a message to the users asking permission to reboot machine and telling them about the process that is envolved in using the install script
echo "Installing Brew Formulae..."
brew install stow \
fish \
neovim \
starship \
zoxide \
fnm \
vivid \
eza \
fzf \
rg \
bat \
fastfetch \
fd \
lazygit \
wget \
zellij \
gh \
httpie \
espanso \
speedtest-cli \
htop \
bpytop \
mailhog \
gorilla-cli \
git-delta
# Install fnm
curl -fsSL https://fnm.vercel.app/install | bash
# make sure to install your dotfile in the root of the user ~/
# if not GNU Stow will not work corrently
git clone https://github.com/0xAquaWolf/AquaFiles.git $HOME
# add fish to /etc/shells -> /usr/local/bin/fish
sudo echo "/opt/homebrew/bin/fish" | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fish # change default terminal shell
# Run this before Stowing Dotfiles
rm -rf ~/.config/fish/config.fish
rm -rf ~/.config/fish/fish_variables
cd ~/AquaFiles
stow fish
source ~/.config/fish/config.fish
cd ~/AquaFiles
stow git
stow wezterm
# Install lazyvim
git clone https://github.com/LazyVim/starter ~/.config/nvim
# remove default lua files to make room for symlinks
rm -rf ~/.config/nvim/lua/*
cd ~/AquaFiles # dotfiles
stow nvim
# Stow
stow bat
bat cache --clear
bat cache --build
# Installing Yabai
brew install koekeishiya/formulae/yabai
cd ~/AquaFiles
stow yabai
# VERY IMPORTANT if not the next command wont register
# prepare to add yabai to sudoers and include the dir in the sudoers path
echo '#includedir /private/etc/sudoers.d' | sudo tee -a /etc/sudoers
# add yabai to the sudoers file
# make sure that if you uninstall yabai at any moment then you need to rehash the binary
# learn more here https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition
echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa" | sudo tee /private/etc/sudoers.d/yabai
yabai --install-service
yabai --start-service
sudo yabai --load-sa
# reboot to confrim everything is working correctly
brew install koekeishiya/formulae/skhd
cd ~/AquaFiles
stow skhd
skhd --install-service
skhd --start-service
# Install Sketchy Bar
./install_sketchybar.sh